作者:dengdaidanlan_738_260 | 来源:互联网 | 2023-09-23 08:48
if we run a centos6 container with cmd /sbin/int in docker-ce 17.06.2 with --init, the container will start fail with error logs "init: missing runlevel
Try `init --help' for more information.
"
and we add runlevel like 3, it also can not start by error logs "init: Failed to connect to socket /com/ubuntu/upstart: Connection refused
"
but if we run it in a lower docker version like 1.12.6 without --init, it is ok to run the same images above.
该提问来源于开源项目:krallin/tini
You can leave out the --init flag to do so.
In our environment, most contianer need tini, using '--init' for dockerd is a easy way to make sure every container is running with tini. but maybe some containers don't need tini or should not use tini, it's a little awkward for us, of cause this is not a common situation, hope better to have it^_^.