解决docker报错问题

Centos7 dockers下载镜像报错: Get https://registry-1.docker.io/v2/: net/http: request canceled

 vim /etc/docker/daemon.json

 写入:

{
    "registry-mirrors":["https://docker.mirrors.ustc.edu.cn"]
}
重启:

[root@km docker]# systemctl daemon-reload 
[root@km docker]# systemctl restart docker

 

解决docker: error pulling image configuration: Get https://registry-1.docker.io/v2/library/mysql/: TLS handshake timeout.

vim /etc/sysconfig/docker 添加

--registry-mirror=http://f2d6cb40.m.daocloud.io

 

 systemctl restart docker

posted @ 2020-03-13 11:27  lengs  阅读(430)  评论(0)    收藏  举报