Docker 如何正确启动 Apache 发表于 2023-11-03 更新于 2024-10-25 分类于 技术 阅读次数: Changyan: 问题描述docker报错:System has not been booted with systemd as init system (PID 1). Can‘t operate.Failed to connect to bus: Host is down 解决办法123456789# 运行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