1. 编辑配置文件:/etc/docker/daemon.json
{
"registry-mirrors": [
"https://docker.211678.top",
"https://docker.1panel.live",
"https://hub.rat.dev",
"https://docker.m.daocloud.io",
"https://do.nark.eu.org",
"https://dockerpull.com",
"https://dockerproxy.cn",
"https://docker.awsl9527.cn"
]
}
2. 加载修改后的配置文件
systemctl daemon-reload
3. 重启docker
systemctl restart docker
4. 查看配置
docker info