官方源太慢了,親測中科大的源是最快的。操作如下:
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