docker 开源镜像源使用及设置
1.编辑/etc/docker
目录下的文件daemon.json
cd /etc/docker
sudo vim daemon.json
修改文件daemon.json
中的内容为:
{
"registry-mirrors": [
"https://dockerproxy.com",
"https://hub-mirror.c.163.com",
"https://mirror.baidubce.com",
"https://ccr.ccs.tencentyun.com"
]
}
2. 重新载入文件daemon.json
systemctl daemon-reload
3. 重启docker服务
systemctl restart docker.service
4. 检查是否更新国内源成功
docker info
终端显示:
Registry Mirrors:
https://dockerproxy.com/
https://hub-mirror.c.163.com/
https://mirror.baidubce.com/
https://ccr.ccs.tencentyun.com/
- Docker 中国区官方镜像:https://registry.docker-cn.com
- 网易:http://hub-mirror.c.163.com
- 七牛云:https://reg-mirror.qiniu.com
- ustc:https://docker.mirrors.ustc.edu.cn
- Docker 官方镜像(中国区):https://registry.docker-cn.com
- Azure 中国:https://dockerhub.azk8s.cn
- 腾讯云公共镜像: https://mirror.ccs.tencentyun.com
- 阿里云公共镜像: https://registry.cn-hangzhou.aliyuncs.com
- 百度镜像:https://mirror.baidubce.com
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 【译】Visual Studio 中新的强大生产力特性
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构
· AI与.NET技术实操系列(六):基于图像分类模型对图像进行分类
2020-08-31 java 文件上传 :MultipartFile 类型转换为file类型
2020-08-31 wireshark 报文颜色
2020-08-31 wireshark 显示过滤表达式
2020-08-31 wireshark 抓包使用