自己部署一下加速器试试。部署 registry 镜像,使用下面这个配置文件,把 proxy.remoteurl 改为 ghcr.io 的地址,试试
“`
version: 0.1
log:
level: info
formatter: text
fields:
service: registry
accesslog:
disabled: false
storage:
cache:
blobdescriptor: inmemory
filesystem:
rootdirectory: /data
http:
addr: :5000
headers:
X-Content-Type-Options: [nosniff]
proxy:
remoteurl: https://registry-1.docker.io
health:
storagedriver:
enabled: true
interval: 10s
threshold: 3
“`