我是靠谱客的博主 尊敬金毛,这篇文章主要介绍docker报错:System has not been booted with systemd as init system (PID 1). Can‘t operate.,现在分享给大家,希望可以做个参考。
docker使用centos7命令 systemctl
报错
复制代码
1
2
3
4$ systemctl status firewalld System has not been booted with systemd as init system (PID 1). Can't operate. Failed to connect to bus: Host is down
解决方式
复制代码
1
2
3
4
5
6
7
8# 运行centos # docker run -itd --name centos centos /bin/bash # 替换为: # 获取systemctl权限 docker run --privileged -itd --name centos centos /usr/sbin/init # 进入终端 docker exec -it centos /bin/bash
参考
docker报错System has not been booted with systemd as init system (PID 1). Can’t operate. Failed to connect to bus: Host is down
最后
以上就是尊敬金毛最近收集整理的关于docker报错:System has not been booted with systemd as init system (PID 1). Can‘t operate.的全部内容,更多相关docker报错:System内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复