您现在的位置是:主页 > news > 东莞网站建设 手袋厂/交换友情链接的要求有

东莞网站建设 手袋厂/交换友情链接的要求有

admin2025/5/20 12:36:00news

简介东莞网站建设 手袋厂,交换友情链接的要求有,销售管理软件排名,wordpress会员可自行发布新闻系统文章目录前言一、镜像加速配置方式1.配置网址2.配置文件 daemon.json 修改总结前言 默认的Docker 桌面,下载镜像是很慢的,因为默认是国外的下载源,所以要配置自己的镜像加速。 一、镜像加速配置方式 以最新的Docker4.0系列来说明配置 1.配…

东莞网站建设 手袋厂,交换友情链接的要求有,销售管理软件排名,wordpress会员可自行发布新闻系统文章目录前言一、镜像加速配置方式1.配置网址2.配置文件 daemon.json 修改总结前言 默认的Docker 桌面,下载镜像是很慢的,因为默认是国外的下载源,所以要配置自己的镜像加速。 一、镜像加速配置方式 以最新的Docker4.0系列来说明配置 1.配…

文章目录

  • 前言
  • 一、镜像加速配置方式
    • 1.配置网址
    • 2.配置文件 daemon.json 修改
  • 总结


前言

默认的Docker 桌面,下载镜像是很慢的,因为默认是国外的下载源,所以要配置自己的镜像加速。

一、镜像加速配置方式

以最新的Docker4.0系列来说明配置

1.配置网址

{"builder": {"gc": {"defaultKeepStorage": "20GB","enabled": true}},"experimental": false,"features": {"buildkit": true},"registry-mirrors": ["https://docker.mirrors.ustc.edu.cn/","https://1rlt72n0.mirror.aliyuncs.com","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"]
}

在这里插入图片描述

2.配置文件 daemon.json 修改

路径:C:\Users{username}.docker\daemon.json

```javascript
{"builder": {"gc": {"defaultKeepStorage": "20GB","enabled": true}},"experimental": false,"features": {"buildkit": true},"registry-mirrors": ["https://docker.mirrors.ustc.edu.cn/","https://1rlt72n0.mirror.aliyuncs.com","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"]
}

在这里插入图片描述

总结

  • Docker for Windows 和 Docker Toolbox是不兼容,如果同时安装两者的话,需要使用hyperv的参数启动。
  • docker-machine create
    –engine-registry-mirror=https://l10nt4hq.mirror.aliyuncs.com -d hyperv default
  • Docker for Windows
    有两种运行模式,一种运行Windows相关容器,一种运行传统的Linux容器。同一时间只能选择一种模式运行。