在Docker-Toolbox中使用中科大鏡像源

官方源太慢了,親測中科大的源是最快的。操作如下:

docker-machine ssh default
sudo sed -i "s|EXTRA_ARGS='|EXTRA_ARGS='--registry-mirror=https://docker.mirrors.ustc.edu.cn |g" /var/lib/boot2docker/profile
exit
docker-machine restart default 

如果中科大的你發現不好使,把https://docker.mirrors.ustc.edu.cn換成別的即可。

 

Docker 官方中國區

https://registry.docker-cn.com

網易

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

阿里雲

https://pee6w651.mirror.aliyuncs.com

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章