win7下docker配置加速器

1.docker-machine ssh default(有时可省略)

2.sudo sed -i "s|EXTRA_ARGS='|EXTRA_ARGS='--registry-mirror=http://d7e77b19.m.daocloud.io |g" /var/lib/boot2docker/profile

3.exit

4.docker-machine restart default

(http://d7e77b19.m.daocloud.io应更换成你的加速地址)

重启出现以下信息:

解决方法:

5.docker-machine env default

6.此时再用docker pull images镜像就快多了。

猜你喜欢

转载自www.cnblogs.com/areyouready/p/8934396.html