Docker配置加速

Linux

curl -sSL https://get.daocloud.io /daotools/set_mirror.sh | sh -s http://3cff1e8d.m.daocloud.io

该脚本可以将 --registry-mirror 加入到你的 Docker 配置文件 /etc/default/docker 中。适用于 Ubuntu14.04、Debian、CentOS6 、CentOS7,其他版本可能有细微不同。更多详情请访问文档。

Windows

在桌面右下角状态栏中右键 docker 图标,修改在 Docker Daemon 标签页中的 json ,把下面的地址:

http://3cff1e8d.m.daocloud.io Copy
加到"registry-mirrors"的数组里。点击 Apply

Mac

Docker For Mac

右键点击桌面顶栏的 docker 图标,选择 Preferences ,在 Advanced 标签下的 Registry mirrors 列表中加入下面的镜像地址:

http://3cff1e8d.m.daocloud.io
点击 Apply & Restart 按钮使设置生效。