网站首页 > 教程文章 正文
安装好docker后,使用docker从 Docker Hub 下载镜像时速度会非常慢,为了提高镜像下载速度,可以使用阿里云镜像加速器来提升
获取阿里云加速器地址
加速器地址:https://cr.console.aliyun.com/cn-beijing/instances/mirrors,这里有各个系统的配置文档
在 镜像工具 > 镜像加速器 可以看到有加速器地址:https://x1un1j6n.mirror.aliyuncs.com
在Windows上配置
环境
windows10 64
docker版本 20.10.6
配置加速
在 docker设置 > Docker Engine 中添加阿里云加速器地址(第2-4行):
{
"registry-mirrors": [
"https://x1un1j6n.mirror.aliyuncs.com"
],
"insecure-registries": [],
"debug": false,
"experimental": false,
"features": {
"buildkit": true
},
"builder": {
"gc": {
"enabled": true,
"defaultKeepStorage": "20GB"
}
}
}
然后点击 apply & Restart 保存
在Centos上配置
环境
Centos 7.2
docker版本 20.10.1
配置加速
打开 daemon.json 文件(没有会自动创建)
# sudo vim /etc/docker/daemon.json
按 i 键进入输入模式,写入:
{
"registry-mirrors": ["https://x1un1j6n.mirror.aliyuncs.com"]
}
按 ESC 键退出输入模式,输入 :wq 保存
重新加载配置文件
# sudo systemctl daemon-reload
重启 Docker
# sudo systemctl restart docker
来源
这是我自己博客地址
https://www.gaoyuanqi.cn/docker-aliyun-jiasuqi
- 上一篇: npm配置阿里镜像库
- 下一篇: 利用阿里云镜像加速器对Docker镜像源进行加速
猜你喜欢
- 2024-12-01 Zabbix Agent安装部署
- 2024-12-01 php composer国内镜像
- 2024-12-01 给R语言RStudio添加阿里云镜像源
- 2024-12-01 LINUX 国内源以及镜像源更换方法
- 2024-12-01 tekton的最新版本安装教程和发布镜像的示例
- 2024-12-01 【Python大语言模型系列】云服务器部署dify大模型应用开发平台
- 2024-12-01 docker配置阿里镜像加速器
- 2024-12-01 Docker配置-阿里云镜像仓库
- 2024-12-01 K8s集群
- 2024-12-01 利用阿里云镜像加速器对Docker镜像源进行加速
- 最近发表
- 标签列表
-
- location.href (44)
- document.ready (36)
- git checkout -b (34)
- 跃点数 (35)
- 阿里云镜像地址 (33)
- qt qmessagebox (36)
- md5 sha1 (32)
- mybatis plus page (35)
- semaphore 使用详解 (32)
- update from 语句 (32)
- vue @scroll (38)
- 堆栈区别 (33)
- 在线子域名爆破 (32)
- 什么是容器 (33)
- sha1 md5 (33)
- navicat导出数据 (34)
- 阿里云acp考试 (33)
- 阿里云 nacos (34)
- redhat官网下载镜像 (36)
- srs服务器 (33)
- pico开发者 (33)
- https的端口号 (34)
- vscode更改主题 (35)
- 阿里云资源池 (34)
- os.path.join (33)