generated from container/tmpl
凌文龙
2 years ago
1 changed files with 22 additions and 0 deletions
@ -0,0 +1,22 @@ |
|||
FROM docker:20.10.17-dind |
|||
|
|||
RUN sed -i "s@https://dl-cdn.alpinelinux.org/@https://mirrors.huaweicloud.com/@g" /etc/apk/repositories; \ |
|||
mkdir -p /etc/docker; \ |
|||
echo $'{ \n\ |
|||
"registry-mirrors": [ \n\ |
|||
"https://ktrsh7na.mirror.aliyuncs.com" \n\ |
|||
] \n\ |
|||
}' >> /etc/docker/daemon.json; \ |
|||
mkdir -p /root/.docker; \ |
|||
echo $'{ \n\ |
|||
"auths": { \n\ |
|||
"repository.anxinyun.cn": { \n\ |
|||
"auth": "YWRtaW46SGFyYm9yMTIzNDU=" \n\ |
|||
}, \n\ |
|||
"registry.cn-hangzhou.aliyuncs.com": { \n\ |
|||
"auth": "==auth==" \n\ |
|||
} \n\ |
|||
} \n\ |
|||
}' >> /root/.docker/config.json.temp |
|||
|
|||
COPY switch-auth.sh /usr/local/bin/ |
Loading…
Reference in new issue