Step1 打开 Docker for windows
{
"registry-mirrors": [
"https://7bezldxe.mirror.aliyuncs.com/",
"https://docker.mirrors.ustc.edu.cn/",
"https://hub-mirror.c.163.com",
"https://registry.docker-cn.com"
],
"insecure-registries": [],
"debug": false,
"experimental": false,
"features": {
"buildkit": true
}
}
Step1 创建配置文件
vi /etc/docker/daemon.json
然后将上述 json 输入
step2 重启 docker 服务
systemctl restart docker