Around 25 containers are running, mostly via docker-compose.
The docker daemon crashes every few days. No apparent reason. I would like to use docker in production, but this is making people nervous. Any help is greatly appreciated.
docker -v
Docker version 1.12.1, build 23cf638
docker-compose -v
docker-compose version 1.8.0, build f3628c7
uname -a
Linux ***** 3.10.0-862.3.2.el7.x86_64 #1 SMP Mon May 21 23:36:36 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
docker engine 1.12 is rather old, and docker-compose 1.8 is also quite old. Both have been superseded by many versions. Currently, the enterprise engine is 17.06.02, while the community edition engine is 18.05. Using very old versions of these pieces of software for production purposes isn’t recommended. I recommend updating both to the latest versions and retrying. There are many bug fixes and new features in the engine and compose.
Your images and Dockerfiles will survive. As far as your containers, if you mean the existing, running containers on the node, they should survive (since they are running, they aren’t dependent on the engine per se), but it would be safer to stop them, perform the upgrade, and then start them.
You can find guidance on upgrading the CE version of the engine at these URLs: