Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-8509

Launching a Docker container with `--restart=always` may cause the Docker container is running after the task completes

    XMLWordPrintableJSON

Details

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              qianzhang Qian Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: