Docker更换国内镜像源
发布日期:2021-11-18 19:17:16 浏览次数:12 分类:技术文章

本文共 631 字,大约阅读时间需要 2 分钟。

使用 Docker 的时候,需要经常从官方获取镜像,但是由于显而易见的网络原因,拉取镜像的过程非常耗时,严重影响使用 Docker 的体验。

docker: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers).

See ‘docker run --help’.

点击右上角docker图标进入perferences…

在Registory mirrors中点击“+”添加镜像源 这里使用的是DaoCloud的MacOS专用镜像
http://f1361db2.m.daocloud.io
在这里插入图片描述
之后点击下面的Apply & Restart 就生效了
https://docker.mirrors.ustc.edu.cn

Linux & Windows用户配制方法:

配置 Daemon

  • 编辑 /etc/docker/daemon.json(Linux)
  • %programdata%\docker\config\daemon.json(Windows)

配置文件中加入(没有该文件的话,先建一个):

{  "registry-mirrors": ["https://docker.mirrors.ustc.edu.cn"]}

中科大镜像

转载地址:https://blog.csdn.net/weixin_39172380/article/details/89845825 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:深入理解GO语言slice类型的容量管理
下一篇:Docker学习笔记(一)

发表评论

最新留言

网站不错 人气很旺了 加油
[***.192.178.218]2024年04月10日 13时33分24秒

关于作者

    喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!

推荐文章

spring boot 与 Ant Design of Vue 实现删除按钮(十八) 2019-04-27
spring boot 与 Ant Design of Vue 实现角色管理布局以及角色的列表(十九) 2019-04-27
spring boot 与 Ant Design of Vue 实现新增角色(二十) 2019-04-27
spring boot 与 Ant Design of Vue 实现修改角色(二十一) 2019-04-27
spring boot 与 Ant Design of Vue 实现删除角色(补二十一) 2019-04-27
spring boot 与 Ant Design of Vue 实现组织管理布局的实现(二十二) 2019-04-27
spring boot 与 Ant Design of Vue 实现左侧组织树(二十三) 2019-04-27
spring boot 与 Ant Design of Vue 实现新增组织(二十四) 2019-04-27
spring boot 与 Ant Design of Vue 实现修改组织(二十五) 2019-04-27
spring boot 与 Ant Design of Vue 实现删除组织(二十六) 2019-04-27
spring boot 与 Ant Design of Vue 实现获取用户列表(二十七) 2019-04-27
spring boot 与 Ant Design of Vue 实现删除用户(三十) 2019-04-27
spring boot 与 Ant Design of Vue 鉴权体系获取用户信息的实现(三十二) 2019-04-27
Druid连接池实现自定义场景的多数据库的连接 2019-04-27
PL/SQL数据库管理工具的使用 2019-04-27
带你玩转属于自己的spring-boot-starter系列(一) 2019-04-27
带你玩转属于自己自己的spring-boot-starter系列(二) 2019-04-27
带你玩转属于自己的spring-boot-starter系列(三) 2019-04-27
基于SnowFlake算法如何让分库分表中不同的ID落在同一个库的算法的实现 2019-04-27
基于springboot的ShardingSphere5.X的分库分表的解决方案之分表解决方案(一) 2019-04-27