Ubuntu 16.04+、Debian 8+、CentOS 7
新建或者修改 /etc/docker/daemon.json,写入如下内容
{
"registry-mirrors": [
"https://hub-mirror.c.163.com",
"https://registry.docker-cn.com"
]
}
重启服务
sudo systemctl daemon-reload
sudo systemctl restart docker
Windows 10
在任务栏托盘 Docker 图标内右键菜单选择 Settings,打开配置窗口后在左侧导航菜单选择 Docker Engine