首页 > 代码库 > centos7.3 Failed to get D-Bus connection

centos7.3 Failed to get D-Bus connection

首先要先在后台启动一个 CentOS7 容器(注意不要少参数):

docker run -d -e "container=docker" --privileged=true -v /sys/fs/cgroup:/sys/fs/cgroup --name c001 docker.io/jdeathe/centos-ssh /usr/sbin/init

然后再进入这个容器

docker exec -it e6860b08a702 /bin/bash 

执行结果

技术分享

  

centos7.3 Failed to get D-Bus connection