找回密码
 立即注册
查看: 2362|回复: 0

docker-compose pull 很慢的话,可以加腾讯云镜像

[复制链接]

347

主题

564

回帖

3679

积分

管理员

积分
3679
QQ
发表于 2023-9-23 00:34:23 | 显示全部楼层 |阅读模式
把下面的代码,保存到 /etc/docker/daemon.json 配置文件里  |; m+ h0 P: b  A7 Q' c
  1. {0 e  I' [, N5 `5 X) J1 S7 u
  2. "registry-mirrors":["https://mirror.ccs.tencentyun.com",- A' z+ T  F% G+ n+ J7 D0 t% d) g0 W
  3.     "https://ccr.ccs.tencentyun.com",4 |' I* ?! @4 d
  4.     "http://f1361db2.m.daocloud.io",
    5 R6 D9 e# _* s$ V, K4 _0 P$ o
  5.     "https://dockerproxy.com",, _: u0 v* l& P. u* u
  6.     "https://hub-mirror.c.163.com",
    6 h& l' @  i. N! J( Y1 x! O; e' m
  7.     "https://ung2thfc.mirror.aliyuncs.com",/ n4 P. ^: ?- F- u& C8 \
  8.     "https://mirror.baidubce.com",+ {$ A: ?* b3 d4 s2 q# p* @
  9.     "https://registry.docker-cn.com",
    / U1 [- j9 ]; b
  10.     "https://reg-mirror.qiniu.com",
    9 ?( Z6 F& C1 `" l
  11.     "https://dockerhub.azk8s.cn",
    " q5 f  I$ W- u" `5 c& Z& x! s
  12.     "https://docker.mirrors.ustc.edu.cn"]
    7 h5 B8 q$ k3 v5 Z# V: |3 v" H
  13. }
    5 Z: ~" R& O5 W  R( k
复制代码

2 y1 P- v# o& U6 F6 c1 E6 N# o( |* W) a# O! e! {
保存后,执行以下命令,重启 Docker 即可。示例命令以 CentOS 7 为例。9 Q! p8 \$ z2 l% }
' [  U$ q6 {& K7 t9 ^) X3 y
  1. sudo systemctl restart docker
复制代码
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|通达创业无忧 ( 粤ICP备2023021749号|粤公网安备 44030402006137号 )

GMT+8, 2026-2-10 16:46 , Processed in 0.009772 second(s), 2 queries , Redis On.

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表