mirror of https://github.com/easzlab/kubeasz.git
delete docker mirror registry by 'azure.cn'
parent
c2c0752ebe
commit
7a8860ff0c
|
@ -55,23 +55,19 @@ oom_score = 0
|
|||
# reference from https://www.ilanni.com/?p=14534
|
||||
[plugins.cri.registry.mirrors."docker.io"]
|
||||
endpoint = [
|
||||
"https://dockerhub.azk8s.cn",
|
||||
"https://docker.mirrors.ustc.edu.cn",
|
||||
"http://hub-mirror.c.163.com"
|
||||
]
|
||||
[plugins.cri.registry.mirrors."gcr.io"]
|
||||
endpoint = [
|
||||
"https://gcr.azk8s.cn",
|
||||
"https://gcr.mirrors.ustc.edu.cn"
|
||||
]
|
||||
[plugins.cri.registry.mirrors."k8s.gcr.io"]
|
||||
endpoint = [
|
||||
"https://gcr.azk8s.cn/google-containers/",
|
||||
"https://gcr.mirrors.ustc.edu.cn/google-containers/"
|
||||
]
|
||||
[plugins.cri.registry.mirrors."quay.io"]
|
||||
endpoint = [
|
||||
"https://quay.azk8s.cn",
|
||||
"https://quay.mirrors.ustc.edu.cn"
|
||||
]
|
||||
{% endif %}
|
||||
|
|
|
@ -15,7 +15,7 @@ ENABLE_REMOTE_API: false
|
|||
ENABLE_MIRROR_REGISTRY: true
|
||||
|
||||
# 设置 docker 仓库镜像
|
||||
REG_MIRRORS: '["https://dockerhub.azk8s.cn", "https://docker.mirrors.ustc.edu.cn"]'
|
||||
REG_MIRRORS: '["https://docker.mirrors.ustc.edu.cn", "http://hub-mirror.c.163.com"]'
|
||||
|
||||
# 信任的HTTP仓库
|
||||
INSECURE_REG: '["127.0.0.1/8"]'
|
||||
|
|
|
@ -78,7 +78,6 @@ EOF
|
|||
cat > /etc/docker/daemon.json << EOF
|
||||
{
|
||||
"registry-mirrors": [
|
||||
"https://dockerhub.azk8s.cn",
|
||||
"https://docker.mirrors.ustc.edu.cn",
|
||||
"http://hub-mirror.c.163.com"
|
||||
],
|
||||
|
|
|
@ -88,8 +88,7 @@ function pull_any_image() {
|
|||
F=$(echo "$1"|awk -F/ '{print NF}')
|
||||
case "$F" in
|
||||
1)
|
||||
HUB="dockerhub.azk8s.cn"
|
||||
#HUB="docker.mirrors.ustc.edu.cn"
|
||||
HUB="docker.mirrors.ustc.edu.cn"
|
||||
GRP="library"
|
||||
IMG="$1"
|
||||
;;
|
||||
|
@ -97,12 +96,11 @@ function pull_any_image() {
|
|||
F1=$(echo "$1"|awk -F/ '{print $1}')
|
||||
F2=$(echo "$1"|awk -F/ '{print $2}')
|
||||
if [[ "$F1" == k8s.gcr.io ]];then
|
||||
HUB="gcr.azk8s.cn"
|
||||
#HUB="gcr.mirrors.ustc.edu.cn"
|
||||
HUB="gcr.mirrors.ustc.edu.cn"
|
||||
GRP="google-containers"
|
||||
IMG="$F2"
|
||||
else
|
||||
HUB="dockerhub.azk8s.cn"
|
||||
HUB="docker.mirrors.ustc.edu.cn"
|
||||
GRP="$F1"
|
||||
IMG="$F2"
|
||||
fi
|
||||
|
@ -112,11 +110,9 @@ function pull_any_image() {
|
|||
F2=$(echo "$1"|awk -F/ '{print $2}')
|
||||
F3=$(echo "$1"|awk -F/ '{print $3}')
|
||||
if [[ "$F1" == quay.io ]];then
|
||||
HUB="quay.azk8s.cn"
|
||||
#HUB="quay.mirrors.ustc.edu.cn"
|
||||
HUB="quay.mirrors.ustc.edu.cn"
|
||||
elif [[ "$F1" == gcr.io ]];then
|
||||
HUB="gcr.azk8s.cn"
|
||||
#HUB="gcr.mirrors.ustc.edu.cn"
|
||||
HUB="gcr.mirrors.ustc.edu.cn"
|
||||
else
|
||||
logger warn "no mirror image for $1"
|
||||
HUB="$F1"
|
||||
|
|
Loading…
Reference in New Issue