Unable to find image ‘hello-world:latest‘ locally docker: Error response from daemon

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

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

报错提示如下:
Unable to find image ‘hello-world:latest‘ locally docker: Error response from daemon_第1张图片
(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

Unable to find image ‘hello-world:latest‘ locally docker: Error response from daemon_第2张图片
(4)测试

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

Unable to find image ‘hello-world:latest‘ locally docker: Error response from daemon_第3张图片
至此,问题已解决!!!

你可能感兴趣的:(java)