我是靠谱客的博主 尊敬金毛,这篇文章主要介绍docker报错:System has not been booted with systemd as init system (PID 1). Can‘t operate.,现在分享给大家,希望可以做个参考。

docker使用centos7命令 systemctl 报错

$ 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

解决方式

# 运行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内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(116)

评论列表共有 0 条评论

立即
投稿
返回
顶部