docker toolbox 报错 Error response from daemon Get https http: server gave HTTP response 

docker toolbox下拉取镜像,报这个错误: Error response from daemon: Get https://ip:port/v2/: http: server gave HTTP response 

如果是linux环境,通过可以改/etc/docker/daemon.json来解决

但是windows下的的docker toolbox,就没有这个路径啦,需要做以下操作:

1.进入虚拟的docker bash中:  cmd命令行输入  docker-machine ssh default

2.进入虚拟的docker bash后,编辑/var/lib/boot2docker/profile文件

sudo vi /var/lib/boot2docker/profile
在 --label provider=virtualbox 的下一行添加下述代码
--insecure-registry xxx.xxx.xxx.xxx:yyy
xxx.xxx.xxx.xxx 是我们的私有镜像仓库的 ip 地址,yyy 是你配置私有镜像仓库时设定的端口号


3.最后,重启dokcer服务:
sudo /etc/init.d/docker restart

然后,我们就可以拉取registry私有仓库的镜像了

参考来源:

启蒙:https://blog.csdn.net/weixin_43404791/article/details/108971842

(以上文字)toolbox详细操作:https://www.jianshu.com/p/2312f7ecdf03

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值