aliyun-acr镜像mirror服务关闭匿名访问
Docker Hub是由Docker官方维护的一个公共仓库服务,它是全球最大的容器镜像存储库.
aliyun-acr
关闭匿名拉取image
镜像加速调整
1.调整镜像加速器功能的受众范围,仅限阿里云用户在具备公网访问能力的相关阿里云云产品资源上使用该能力。
2.仅支持通过镜像加速器拉取一定限定范围内的容器镜像。
验证调整
1.mirror填写aliyun
[root@c7-101 docker]# cat /etc/docker/daemon.json
{
"registry-mirrors": [
"https://bxsfpjcb.mirror.aliyuncs.com"
]
}
2.测试pull
[root@c7-101 docker]# docker pull redis
Using default tag: latest
latest: Pulling from library/redis
e4fff0779e6d: Pulling fs layer
d1dde3db2ec5: Pulling fs layer
1d321a003dde: Pulling fs layer
d65aedb2f012: Waiting
4018f93716a2: Waiting
b0967b02e8cf: Waiting
4f4fb700ef54: Waiting
d288b86f5d06: Waiting
3.docker日志(403)
Aug 22 13:37:46 c7-101 dockerd[4635]: time="2024-08-22T13:37:46.995515979+08:00" level=info msg="Attempting next endpoint for pull after error: error parsing HTTP 403 response body: invalid character 'T' looking for beginning of value: \"This request is forbidden. Please proceed to https://help.aliyun.com/zh/acr/product-overview/product-change-acr-mirror-accelerator-function-adjustment-announcement to view the announcement.\""
^C
最新可用dockerhub-mirror
/etc/docker/daemon.json
{
"registry-mirrors": [
"https://dockerhub.icu",
"https://docker.chenby.cn",
"https://docker.1panel.live",
"https://docker.awsl9527.cn",
"https://docker.anyhub.us.kg",
"https://dhub.kubesre.xyz"
]
}