Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.5.0
-
Mesosphere Sprint 74
-
2
Description
Due to an issue on the Moby project, it's possible for Docker versions 1.13 and later to fail to catch a container exit, so that the docker run command which was used to launch the container will never return. This can lead to the Docker executor becoming stuck in a state where it believes the container is still running and cannot be killed.
We should update the Docker executor to ensure that containers stuck in such a state cannot cause unkillable Docker executors/tasks.
One way to do this would be a timeout, after which the Docker executor will commit suicide if a kill task attempt has not succeeded. However, if we do this we should also ensure that in the case that the container was actually still running, either the Docker daemon or the DockerContainerizer would clean up the container when it does exit.
Another option might be for the Docker executor to directly wait() on the container's Linux PID, in order to notice when the container exits.
Attachments
Issue Links
- causes
-
MESOS-8876 Normal exit of Docker container using rexray volume results in TASK_FAILED.
- Resolved
- is related to
-
MESOS-8694 Possibly unkillable task for customer docker executor if the docker daemon fails to capture the container exit code.
- Open