zoukankan      html  css  js  c++  java
  • docker报错System has not been booted with systemd as init system (PID 1). Can't operate. Failed to connect to bus: Host is down

    环境centos7.8

    docker容器使用systemctl命令报错:

    [root@d7a74069b83c yum.repos.d]# 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

    solution:

    启动容器时加入参数 --privileged

    [root@localhost ~]# docker run -itd --name c8 --privileged centos /usr/sbin/init
    6a6a3c9f9fa9acc59d62a6e82ccb6a637db8aada004aa8a096c6061108c6b144
    [root@localhost ~]# docker exec -it c8 /bin/bash
  • 相关阅读:
    牛客练习赛24 E:青蛙(最短路)
    菜根谭#10
    菜根谭#9
    菜根谭#8
    菜根谭#7
    菜根谭#6
    菜根谭#5
    菜根谭#4
    菜根谭#3
    菜根谭#2
  • 原文地址:https://www.cnblogs.com/omgasw/p/13680033.html
Copyright © 2011-2022 走看看