安装完docker运行docker不知道什么情况,网上找好像不太行
[root@bp-centos-0 src]# sudo systemctl start docker
Failed to get D-Bus connection: Operation not permitted
[root@bp-centos-0 src]# systemctl start docker
Failed to get D-Bus connection: Operation not permitted
[root@bp-centos-0 src]# docker run hello-world
docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
See 'docker run --help'.
不知道你这个问题是否已经解决, 如果还没有解决的话:yum安装并启动程序
[root@192 ~]# yum install docker -y
[root@192 ~]# systemctl enable docker
[root@192 ~]# systemctl start docker
配置docker镜像加速
[root@192 ~]# cat /etc/docker/daemon.json
{
"registry-mirrors": ["https://qegs5iwg.mirror.aliyuncs.com"]
}
[root@192 ~]# systemctl restart docker
镜像加速获取方法:
登录阿里云——>产品——>容器服务ACK——>控制台——>容器镜像服务——>镜像中心——>镜像加速器,根据提示,完成镜像加速配置(需要登录注册)
应该是安装过程中出问题了,怎么安装的?用yum安装试试
yum -y install docker