【服务器 踩过的坑】Error response from daemon: Get https://index.docker.io/v1/search?......
Error response from daemon: Get https://index.docker.io/v1/search?q=portainer&n=25: dial tcp: lookup index.docker.io: no such host
·
Error response from daemon: Get https://index.docker.io/v1/search?..
1.错误信息
2.解决方法
cd /etc/docker
vi daemon.json
添加镜像地址
"registry-mirrors": ["https://registry.docker-cn.com"]
重启docker
service docker restart
或
service docker stop
service docker start
或
systemctl stop docker.service
systemctl start docker.service
systemctl enable docker.service(可选)
3.成功
更多推荐
已为社区贡献1条内容
所有评论(0)