写入镜像配置
sudo gedit /etc/docker/daemon.json
{
“registry-mirrors”: [
“https://docker.m.daocloud.io”,
“https://dockerproxy.com”,
“https://docker.mirrors.ustc.edu.cn”,
“https://docker.nju.edu.cn”
]
}
重启docker服务
sudo systemctl daemon-reload
sudo systemctl restart docker
docker run hello-world