Hello Jan,

You are completely right.. If i set the docker image at taskInfo it is running 
properly. The reason that i wanted to add the docker image as an executor is 
because i would like to have one task per container. If i setContainer at 
taskInfo every task is going to run under the same container? Or each task will 
have its own container? I would like to provide an isolation between docker 
containers and tasks to my framework.

Thank you,
Thodoris

> On 4 Aug 2017, at 15:50, Jan Schlicht <[email protected]> wrote:
> 
> Hey Thodoris,
> 
> when you set a container for the executor (the `ExecutorInfo.container` 
> field), this container is expected to provide an executor, i.e. connects and 
> communicates with the Mesos agent that started the executor to run a task. 
> `echo hello world` doesn't do this, that's why you see the 
> EXECUTOR_TERMINATED message.
> 
> Cheers
> Jan
> 
> On Fri, Aug 4, 2017 at 1:44 PM, Thodoris Zois <[email protected] 
> <mailto:[email protected]>> wrote:
> Hello list,
> 
> I am developing my own framework and i got a problem with docker images.
> 
> I am creating a task that will have assigned a docker image as executor. The 
> purpose of doing this is because i want to have one task per docker 
> container.  I have set a TaskInfo with executor a `docker image`. In the 
> image i am just running `echo hello world!`. Every task that uses `Executor 
> docker image` is in state `TASK_FAILED with reason EXECUTOR_TERMINATED -> 
> Container terminated`. I don't get any status update message `TASK_RUNNING` 
> and the image is running properly. Even at the output of stdout i get the 
> message `Hello world!`. I think that the task is not getting in my container. 
> But it gets the proper executorID.
> 
> This is my master log: https://pastebin.com/5yB7KR28 
> <https://pastebin.com/5yB7KR28> <https://pastebin.com/5yB7KR28 
> <https://pastebin.com/5yB7KR28>>
> 
> This is my slave log: https://pastebin.com/sKPz949J 
> <https://pastebin.com/sKPz949J> <https://pastebin.com/sKPz949J 
> <https://pastebin.com/sKPz949J>>
> 
> And this is my protobuf: https://pastebin.com/YG3J7Fi0 
> <https://pastebin.com/YG3J7Fi0> <https://pastebin.com/YG3J7Fi0 
> <https://pastebin.com/YG3J7Fi0>>
> 
> 
> Any help would be appreciated!
> 
> Thank you,
> Thodoris
> 
> 
> 
> 
> 
> -- 
> Jan Schlicht
> Distributed Systems Engineer, Mesosphere

Reply via email to