File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ init_arch() {
1919
2020function clean_before_exit {
2121 # delay before exiting, so stdout/stderr flushes through the logging system
22- rm -rf /tmp/drycc-values.yaml
22+ rm -rf /tmp/drycc-values.yaml /etc/rancher/k3s/registries.yaml
2323 configure_registries runtime
2424 systemctl restart k3s
2525 sleep 3
@@ -62,8 +62,6 @@ function configure_registries {
6262mirrors:
6363 "docker.io":
6464 endpoint:
65- - "https://mirror.baidubce.com"
66- - "https://docker.mirrors.ustc.edu.cn"
6765 - "https://hub-mirror.c.163.com"
6866 - "https://registry-1.docker.io"
6967EOF
@@ -202,16 +200,10 @@ imagebuilder:
202200 short-name-mode="permissive"
203201 [[registry]]
204202 prefix = "docker.io"
205- location = "docker-mirror.drycc.cc"
206- [[registry]]
207- prefix = "quay.io"
208- location = "quay-mirror.drycc.cc"
209- [[registry]]
210- prefix = "gcr.io"
211- location = "gcr-mirror.drycc.cc"
212- [[registry]]
213- prefix = "k8s.gcr.io"
214- location = "k8s-mirror.drycc.cc"
203+ location = "registry-1.docker.io"
204+ [[registry.mirror]]
205+ prefix = "docker.io"
206+ location = "hub-mirror.c.163.com"
215207EOF
216208 else
217209 cat << EOF > "/tmp/drycc-values.yaml"
You can’t perform that action at this time.
0 commit comments