# 启动docker(一定要先启动再添加dns)
systemctl start docker
#添加国境镜像和dns
sudo vim /etc/docker/daemon.json
{
"registry-mirrors":[
"https://dockerpull.pw",
"https://dockerhub.icu",
"https://hub.rat.dev",
"https://register.librax.org",
"https://docker-0.unsee.tech",
"https://docker-cf.registry.cyou",
"https://docker.1panel.live"
],
"dns" : [
"8.8.8.8",
"114.114.114.114"
]
}
# 重启docker
systemctl restart docker