Open woshihaoren opened 5 years ago
Have you tried doing docker kill
instead of stop to send a SIGKILL to the process? Also try running the container with the docker run --init
flag to reap these zombies. There is also a daemon flag to enable the custom pid1 for all containers: dockerd --init
@crosbymichael docker kill and docker run --init are useless docker kill can't stop. docker run --init,I encountered init becoming a zombie process
https://github.com/moby/moby/pull/40749 should probably address this
Description Docker stop container can't work, When container pid 1 becomes a zombie process. And kill this zombie's parent process, than container can rm.
Steps to reproduce the issue: 1.sometimes docker stop container ,can not success,than can see pid 1 to be zombie.
Describe the results you expected:
Additional information you deem important (e.g. issue happens only occasionally): Here is container pid 1 becomes a zombie process:
Here is the normal process information:
Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.):