|
把下面的代码,保存到 /etc/docker/daemon.json 配置文件里+ i, D: t% f6 g4 N% J5 E! U/ B
- {
$ {9 F4 O3 d' G: R0 G - "registry-mirrors":["https://mirror.ccs.tencentyun.com",
3 }- K6 k, z2 l' j4 q - "https://ccr.ccs.tencentyun.com",- O; Q n9 m4 Z6 }' Q3 Q
- "http://f1361db2.m.daocloud.io",* D6 x- g4 a3 ?9 u. }% s
- "https://dockerproxy.com",$ D9 Y Q" D- ~" w, l$ a" ?# f
- "https://hub-mirror.c.163.com",
! ^2 }% c% c4 @- }( V: b v - "https://ung2thfc.mirror.aliyuncs.com",: U, V% K5 e) r" V4 {" ]
- "https://mirror.baidubce.com",
* z! a/ H7 p) J# j - "https://registry.docker-cn.com",
4 o3 K1 n" {" ?* G5 F n8 Y6 u# c( S - "https://reg-mirror.qiniu.com",6 `/ v, V4 E# y
- "https://dockerhub.azk8s.cn",
& J" J; p, E+ i - "https://docker.mirrors.ustc.edu.cn"]* \& W% V, [8 m& v! |1 o2 m X/ Z
- }
1 I2 K' U0 v! m2 H+ |
复制代码 % f/ B& @0 G* C- U
5 I* P- F& V5 X3 [$ }# R保存后,执行以下命令,重启 Docker 即可。示例命令以 CentOS 7 为例。) p4 F( O3 L) ?+ I; w% G3 T; B- U
9 E$ G/ Q) w' p; k9 ]! N/ T8 Z( i- sudo systemctl restart docker
复制代码 |
|