在Centos7.X上安装docker的博客链接:https://blog.csdn.net/weixin_43520450/article/details/107377575

———— ———— ———— ———— ———— ———— ———— ———— ———— —————

报错提示如下:
在这里插入图片描述
(1)修改

[root@wgh ~]# vi /etc/docker/daemon.json

(2)添加下面的内容,并保存

{ 
"registry-mirrors": ["https://alzgoonw.mirror.aliyuncs.com"] 
}

(3)重启docker

#重启
[root@wgh ~]# systemctl restart docker

#查看状态
[root@wgh ~]# systemctl status docker

在这里插入图片描述
(4)测试

[root@wgh ~]# docker run hello-world

在这里插入图片描述
至此,问题已解决!!!

Logo

云原生社区为您提供最前沿的新闻资讯和知识内容

更多推荐