Docker container will automatically stop after “docker run -d”

The centos dockerfile has a default command bash. That means, when run in background (-d), the shell exits immediately. Update 2017 More recent versions of docker authorize to run a container both in detached mode and in foreground mode (-t, -i or -it) In that case, you don’t need any additional command and this is … Read more