docker安装完成后测试feisky/nginx:latest 出现问题(Unable to find image 'feisky/nginx:latest' locally)

时间:2019-08-21
本文章向大家介绍docker安装完成后测试feisky/nginx:latest 出现问题(Unable to find image 'feisky/nginx:latest' locally),主要包括docker安装完成后测试feisky/nginx:latest 出现问题(Unable to find image 'feisky/nginx:latest' locally)使用实例、应用技巧、基本知识点总结和需要注意事项,具有一定的参考价值,需要的朋友可以参考一下。

安装docker之后,测试feisky/nginx镜像,终端卡在Unable to find image 'feisky/nginx:latest' locally位置

docker在本地没有找到feisky/nginx镜像,也没有从docker仓库中拉取镜像,出项这个问题的原因:是应为docker服务器再国外,我们在国内
无法正常拉取镜像,所以就需要我们为docker设置国内阿里云的镜像加速器;
需要修改配置文件      /etc/docker/daemon.json  如下

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


配置文件daemmon,json添加阿里云镜像地址,保存并退出,并且重启docker服务(systemctl restart docker)
docker重启之后,就可以正常拉取feisky/nginx镜像了

 ————————————————
版权声明:本文参考CSDN博主「来自丹麦的天籁」的原创文章
原文链接:https://blog.csdn.net/wireless911/article/details/88989620

原文地址:https://www.cnblogs.com/guoscnblog/p/11387198.html