在配置文件 /etc/docker/daemon.json 中加入:
{
"registry-mirrors": ["https://hub-mirror.c.163.com"]
}
{
"registry-mirrors": ["https://docker.mirrors.ustc.edu.cn/"]
}
以root权限重新启动docker即可
service docker restart
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
在配置文件 /etc/docker/daemon.json 中加入:
{
"registry-mirrors": ["https://hub-mirror.c.163.com"]
}
{
"registry-mirrors": ["https://docker.mirrors.ustc.edu.cn/"]
}
以root权限重新启动docker即可
service docker restart