1.新建 /etc/docker/daemon.json 添加如下內容:
{
"registry-mirrors": ["https://docker.mirrors.ustc.edu.cn"]
}
2.重啓docker服務,如果加速不成功, 直接reboot
# 重載此配置文件
systemctl daemon-reload
systemctl restart docker
reboot
1.新建 /etc/docker/daemon.json 添加如下內容:
{
"registry-mirrors": ["https://docker.mirrors.ustc.edu.cn"]
}
2.重啓docker服務,如果加速不成功, 直接reboot
# 重載此配置文件
systemctl daemon-reload
systemctl restart docker
reboot