moby: Very frequently getting zombie processes from killed Docker containers
I am running Ubuntu 14.04 with kernel version:
Linux execute 3.13.0-34-generic #60-Ubuntu SMP Wed Aug 13 15:45:27 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
My kernel has the patch described here as fixing the longstanding zombie issue with Docker: http://stackoverflow.com/a/22600096/638592
My containers all basically are bash scripts that run some sort of TTY process (like ruby or python shell, for instance). I have no problems killing the container, but these processes stick around. This happens very reliably, but I’m not sure how to make a more minimally reproducing test case.
Can anyone advise me on how to get to the bottom of this?
About this issue
- Original URL
- State: closed
- Created 10 years ago
- Comments: 32 (31 by maintainers)
@crosbymichael @unclejack
I am having my boy @hwong make a repro case in Go as an exercise. In the meantime, I also made the nodeJS repro case easier for you. It’s hard to give you an image because setting up docker-in-docker is a pain in my ass.
Instructions
apt-get install nodejs
Whatever your distro packages is probably fine. If you want the latest stable node, justadd-apt-repository ppa:chris-lea/node.js
first.npm install dockerode
test.js
and then donode test.js
At this point you should have:
#yolo