热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

tinidoesnotsupportcmd/sbin/init

ifwerunacentos6containerwithcmd/sbin/intindocker-ce17.06.2with--init,thec

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^_^.


   



推荐阅读
author-avatar
dengdaidanlan_738_260
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有