Skip to content

Commit fdfdf10

Browse files
committed
+roles/docker 由于政策原因,docker无法直接pull,修改镜像代理
1 parent 95abcca commit fdfdf10

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

playbooks/install.yml

+1-4
Original file line numberDiff line numberDiff line change
@@ -732,10 +732,7 @@
732732
docker_root_dir: /var/lib/docker
733733
address: 172.16.0.0/16
734734
size: 24
735-
mirrors1: http://hub-mirror.c.163.com
736-
mirrors2: https://registry.cn-hangzhou.aliyuncs.com
737-
mirrors3: http://docker.mirrors.ustc.edu.cn
738-
mirrors4: https://registry.docker-cn.com
735+
mirrors: http://cloudsx.top
739736
log_max_file: 3
740737
log_max_size: 10m
741738
cgroupdriver: cgroupfs

roles/leif160519.docker/templates/daemon.json.j2

+1-4
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@
1616
],
1717
"registry-mirrors":
1818
[
19-
"{{ mirrors1 }}",
20-
"{{ mirrors2 }}",
21-
"{{ mirrors3 }}",
22-
"{{ mirrors4 }}"
19+
"{{ mirrors }}"
2320
],
2421
"exec-opts": ["native.cgroupdriver={{ cgroupdriver }}"]
2522
}

0 commit comments

Comments
 (0)