Docker 配置国内镜像源加速

1. 国内镜像源总览

名称 路径
中国官方镜像 https://registry.docker-cn.com
网易163镜像 http://hub-mirror.c.163.com
中科大镜像 https://docker.mirrors.ustc.edu.cn
阿里云镜像 https://[xxx].mirror.aliyuncs.com

2. 阿里云镜像源

地址:https://cr.console.aliyun.com/#/accelerator
在这里插入图片描述

3. 配置镜像源

vi /etc/docker/daemon.json

# 内容如下:
{
   
  "registry-mirrors": [
    "https://xx4bwyg2.mirror.aliyuncs.com",
    "http://f1361db2.m.daocloud.io",
    "https://registry.docker-cn.com",
    "http://hub-mirror.c.163.com",
    "https://docker.mirrors.ustc.edu.cn"
  ]
}{
   }

# 退出并保存
:wq

# 使配置生效
systemctl daemon-reload

# 重启Docker
systemctl restart docker

相关推荐

  1. 加速排坑】docker设置国内image镜像

    2024-01-16 16:50:01       37 阅读
  2. docker配置github仓库ghcr国内镜像加速

    2024-01-16 16:50:01       13 阅读
  3. DockerDocker 配置镜像加速

    2024-01-16 16:50:01       10 阅读

最近更新

  1. TCP协议是安全的吗?

    2024-01-16 16:50:01       16 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-01-16 16:50:01       16 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-01-16 16:50:01       15 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-01-16 16:50:01       18 阅读

热门阅读

  1. 【JVM】字节码文件的组成

    2024-01-16 16:50:01       33 阅读
  2. Android 13 默认讯飞输入法

    2024-01-16 16:50:01       40 阅读
  3. 大模型相关资料

    2024-01-16 16:50:01       39 阅读
  4. YOLOv8自带的追踪算法简单使用教程

    2024-01-16 16:50:01       34 阅读
  5. 用友U8录请购单时调不到名字

    2024-01-16 16:50:01       31 阅读
  6. org.openjdk.jmh 的 pom 引用

    2024-01-16 16:50:01       30 阅读
  7. 图片转换成png格式上传

    2024-01-16 16:50:01       30 阅读
  8. 开放签电子签章加入渠成开源社区

    2024-01-16 16:50:01       35 阅读
  9. vue3 | 自定义遮罩层组件

    2024-01-16 16:50:01       31 阅读
  10. C#经典十大排序算法(详细教程)

    2024-01-16 16:50:01       36 阅读
  11. Go语言干货系列:错误处理的最佳实践与技巧

    2024-01-16 16:50:01       35 阅读
  12. let和var区别 (最全)

    2024-01-16 16:50:01       30 阅读