[ 
https://issues.apache.org/jira/browse/MESOS-8509?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16345176#comment-16345176
 ] 

Qian Zhang commented on MESOS-8509:
-----------------------------------

Basically we should add a validation to disallow setting Docker container's 
restart policy so that the Docker container's life cycle can be fully 
controlled by Mesos.

> Launching a Docker container with `--restart=always` may cause the Docker 
> container is running after the task completes
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: MESOS-8509
>                 URL: https://issues.apache.org/jira/browse/MESOS-8509
>             Project: Mesos
>          Issue Type: Bug
>          Components: docker
>            Reporter: Qian Zhang
>            Priority: Major
>
> If user launches a task (e.g., sleep 10) using the Docker containerizer to 
> run a Docker container with `–restart=always` option (it can be enabled with 
> `ContainerInfo.DockerInfo.parameters`), after the task completes, the Docker 
> container will be stopped and will not be automatically started again 
> (because Docker container's restart policy is ignored if the container is 
> manually stopped) which is good. But when the Docker daemon is restarted 
> (e.g., the agent host is rebooted), that Docker container will be 
> automatically started by Docker daemon which is obviously not what we want.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to