问题:
docker pull image 太慢了
只好找个国内镜像
解决:
centos 修改 docker 启动脚本/etc/systemd/system/docker.service 增加 –registry-mirror
–registry-mirror=https://****.mirror.aliyuncs.com (需要注册后才有)
centos7 systemd 系统也可以增加/etc/docker/daemon.json 然后重启
osx docker v17 可以直接在 “Perference”->”Daemon”->”Register mirrors”添加
docker-machine boot2docker 可以 添加在/var/lib/boot2docker/profile
参考:
https://cr.console.aliyun.com/?spm=5176.1971733.0.2.ztoQBF#/accelerator
http://hanqunfeng.iteye.com/blog/2333353
https://yeasy.gitbooks.io/docker_practice/content/install/mirror.html