I have been pulling my hair for this day for several days, to the point that I am throwing it here. Using docker-compose, I start several containers, one of which starts mongodb using CMD ["/ usr / bin / mongod"] However, when I close the container using docker stop, the mongod process accepts a 100% processor and keeps running forever, unable to kill him. When parent processes are killed, the mongod process becomes a child of the init element, but in the same state. Mongodb writes that it is closed with error code 0.
Version for dockers: 17.04.0-ce Version for dockers: 1.11.2
What I have tried so far:
- different linux distributions
- supervisord in mongod handling container
- added - to the docker daemon
- run mongod as fork
- find the kernel update, but 3.14 seems to be the last one (works on Odroid C2)
- different storage drivers, but only aufs works (overlay requires a higher kernel)
All without any joy.

source share