1.vi /etc/docker/daemon.json
2.配置文件内容修改为:
{
"registry-mirrors": [
"https://docker.m.daocloud.io",
"https://docker.mirrors.ustc.edu.cn",
]
}
3.执行命令
-
systemctl daemon-reload
-
systemctl restart docker
1.vi /etc/docker/daemon.json
2.配置文件内容修改为:
{
"registry-mirrors": [
"https://docker.m.daocloud.io",
"https://docker.mirrors.ustc.edu.cn",
]
}
3.执行命令
systemctl daemon-reload
systemctl restart docker