Using Docker Image Accelerators in China
Domestic mirror sources Domestic mirror sources include Docker official China region https://registry.docker-cn.com NetEase http://hub-mirror.c.163.com USTC http://docker.mirrors.ustc.edu.cn Alibaba Cloud http://<your ID>.mirror.aliyuncs.com Note Note that registry-mirrors must never use https, but rather use
目录5 个章节
Domestic Mirror Sources
Domestic mirror sources include
- Docker official China region https://registry.docker-cn.com
- NetEase http://hub-mirror.c.163.com
- USTC http://docker.mirrors.ustc.edu.cn
- Alibaba Cloud http://<your ID>.mirror.aliyuncs.com
Note
Note that registry-mirrors must never use https, but rather http, otherwise it will display No certs for egitstry.docker.com, insecure-registries should not have any http prefix, otherwise it will not pass.
Linux Configuration
Edit /etc/docker/daemon.json
{
"registry-mirrors" : [
"http://ovfftd6p.mirror.aliyuncs.com",
"http://registry.docker-cn.com",
"http://docker.mirrors.ustc.edu.cn",
"http://hub-mirror.c.163.com"
],
"insecure-registries" : [
"registry.docker-cn.com",
"docker.mirrors.ustc.edu.cn"
],
"debug" : true,
"experimental" : true
}
Then restart the Docker daemon.
Windows
For Windows, just open the dashboard and configure it yourself.
References
_EOF_
Using Docker Image Accelerators in China
- 本文作者:
- 程序设计实验室
- 版权声明:
- 本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!
相关文章
一次生产环境的docker MySQL故障
问题 昨天下午本来要去吃下午茶,然后前端小伙伴突然说接口怎么崩了,我登上sentry一看,报错了 (2005, Unknown MySQL server host 'mysql' (-3)) 啥意思啊,连不上数据库,host是mysql因为这是在docker环境里 直接ssh连上服务器查看,没啥问题呀,MySQL容器也正常运行着 奇怪 然后我重启了一波docker,结果发现MySQL容器没有正常重
2022-05-27 · docker · 约 1 分钟
使用Cloudflare Worker加速docker镜像
国内docker访问慢?Cloudflare Worker代理加速,代码现成,边缘搞定。开发者不用爬墙了?感谢Cloudflare还活着,自建去。
2024-07-19 · docker · 约 1 分钟
真正的生产力来了!Docker迁移部署两步搞定!
打包应用目录和命名数据卷,再复制过去解压启动,过程繁琐得令人发指。导出导入数据卷更是鸡肋,还不如直接重装。一键迁移脚本倒是挺酷,但谁会用这种花里胡哨的东西?
2025-06-30 · docker · 约 1 分钟
从挖矿木马入侵到 Docker Rootless 加固,我的服务器安全复盘
非要等服务器沦为矿场,才肯承认 Docker 默认 Root 权限是给黑客开后门?配置 Rootless 虽琐碎,但也比重装系统划算。连端口映射和 ACL 权限都搞不定,还是趁早关机退网,别在生产环境裸奔了。
2026-01-13 · docker · 约 1 分钟
讨论
共 0 条加载评论中…