When stopping a docker with mongod daemon running using command:
docker stop <container_id>
the next time you start the mongod docker, it will complain about unclean shutdown detected:
“Unclean shutdown detected.
Please visit http://dochub.mongodb.org/core/repair for recovery
instructions.”
Cause: “docker stop” use SIGTERM to kill mongod daemon, while it is recommended to use SIGINT
Solution:
docker kill -s INT <container_id>