docker desktop 镜像加速,Windows版本
方式一:在设置上更改
![](https://img2022.cnblogs.com/blog/1993414/202207/1993414-20220709104343172-568860232.png)
{ "builder": { "gc": { "defaultKeepStorage": "20GB", "enabled": true } }, "experimental": false, "features": { "buildkit": true }, "registry-mirrors": [ "https://docker.mirrors.ustc.edu.cn/","https://registry.docker-cn.com", "http://hub-mirror.c.163.com", "https://docker.mirrors.ustc.edu.cn", "https://reg-mirror.qiniu.com", "https://dockerhub.azk8s.cn", "https://mirror.ccs.tencentyun.com" ] }
方式二:
在配置文件 daemon.json 修改
路径:C:\Users\{username}\.docker\daemon.json
{ "builder": { "gc": { "defaultKeepStorage": "20GB", "enabled": true } }, "experimental": false, "features": { "buildkit": true }, "registry-mirrors": [ "https://docker.mirrors.ustc.edu.cn/", "https://registry.docker-cn.com", "http://hub-mirror.c.163.com", "https://docker.mirrors.ustc.edu.cn", "https://reg-mirror.qiniu.com", "https://dockerhub.azk8s.cn", "https://mirror.ccs.tencentyun.com" ] }
参考:https://cloud.tencent.com/developer/article/1940240