windows10 docker pull 异常:Error response from daemon: Get https: xxx 解决办法 修改国内镜像地址

出现该问题 只需修改国内镜像地址即可:

1.打开终端cmd

2.执行命令:docker-machine ssh

3.修改配置文件:

sudo vi /var/lib/boot2docker/profile

--label provider=virtualbox的下一行添加:

--registry-mirror=http://hub-mirror.c.163.com/
--registry-mirror=https://registry.docker-cn.com/
--registry-mirror=https://docker.mirrors.ustc.edu.cn/
--registry-mirror=https://p31wiatp.mirror.aliyuncs.com/

4.exit

5.重启docker,执行 docker-machine.exe restart

扫描二维码关注公众号,回复: 9787419 查看本文章

国内加速地址有:

Docker中国区官方镜像
https://registry.docker-cn.com

网易
http://hub-mirror.c.163.com

中国科技大学
https://docker.mirrors.ustc.edu.cn

发布了45 篇原创文章 · 获赞 3 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/cfm_gavin/article/details/104397210