You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Qian Zhang (JIRA)" <ji...@apache.org> on 2018/01/30 14:57:00 UTC

[jira] [Created] (MESOS-8509) Launching a Docker container with `--restart=always` may cause the Docker container is running after the task completes

Qian Zhang created MESOS-8509:
---------------------------------

             Summary: 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


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)