NYC's Blog - 搭建registry mirror 的评论 http://niyanchun.com/deploy-registry-mirror.html Docker registry是专门用于存放docker镜像的,docker官方提供了docker hub,是全球最大的docker镜像存储中心。但是在中国既没有服务器也没有CDN,所以导致pu... NYC http://niyanchun.com/deploy-registry-mirror.html/comment-page-1#comment-445 2018-03-26T17:07:26+08:00 哦,这样啊。那从registry.docker-cn.com直接拉能拉下来吗(直接把本地镜像库设置成这个)?如果也不行,那就和你搭建方式没关系了。如果可以,那就看下你registry的日志,看下拉microsoft/dotnet之类镜像的时候有没有什么错误日志。 bubble http://niyanchun.com/deploy-registry-mirror.html/comment-page-1#comment-444 2018-03-26T16:51:26+08:00 可能是我没说明白吧。我的意思registry镜像模式下,docker官方的镜像,比如library目录的镜像,如(nginx,mysql,mariadb,node .etc)等没问题,但是社区镜像,例如微软旗下的microsoft,比如gitlab的gitlab,他们的镜像都无法pull。另外,我的registry的上游设置的是registry.docker-cn.com。 NYC http://niyanchun.com/deploy-registry-mirror.html/comment-page-1#comment-443 2018-03-26T16:45:23+08:00 死活pull不下来最大的两种可能是:1. 镜像不存在。2. 网络问题,比如google镜像仓库的国内没梯子就pull不下来。所以,你可以先单独docker pull一下,看是是哪个问题。我估计可能是网络问题。 bubble http://niyanchun.com/deploy-registry-mirror.html/comment-page-1#comment-442 2018-03-26T15:07:02+08:00 ps: 我用的是harborregistry配置如下version: 0.1 log: level: info fields: service: registry storage: cache: layerinfo: inmemory filesystem: rootdirectory: /storage maintenance: uploadpurging: enabled: false delete: enabled: true http: addr: :5000 secret: placeholder debug: addr: localhost:5001 auth: token: issuer: harbor-token-issuer realm: https://registry.mydomain.com/service/token rootcertbundle: /etc/registry/root.crt service: harbor-registry notifications: endpoints: - name: harbor disabled: false url: http://ui:8080/service/notifications timeout: 3000ms threshold: 5 backoff: 1s proxy: #remoteurl: https://hub-mirror.c.163.com remoteurl: https://registry.docker-cn.com bubble http://niyanchun.com/deploy-registry-mirror.html/comment-page-1#comment-441 2018-03-26T15:05:26+08:00 我部署registry镜像遇到个问题,只有library/xxxxx这样的镜像能pull下来,其他的社区镜像,比如microsoft/dotnet 这种镜像死活pull不下来,不知道是什么问题,求大神指点。