docker镜像加速

直接在/etc/docker路径下创建一个daemon.json文件在其中填写镜像站地址即可

1
2
3
4
5
6
7
8
9
10
11
12
13
sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<EOF
{
"registry-mirrors": [
"https://dockerproxy.cn",
"https://docker.rainbond.cc",
"https://docker.udayun.com",
"https://docker.211678.top"
]
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker