NYC's Blog - 搭建registry mirror 的评论 http://niyanchun.com/deploy-registry-mirror.html zh-CN Docker registry是专门用于存放docker镜像的,docker官方提供了docker hub,是全球最大的docker镜像存储中心。但是在中国既没有服务器也没有CDN,所以导致pu... Mon, 26 Mar 2018 17:07:26 +0800 Mon, 26 Mar 2018 17:07:26 +0800 NYC http://niyanchun.com/deploy-registry-mirror.html/comment-page-1#comment-445 http://niyanchun.com/deploy-registry-mirror.html/comment-page-1#comment-445 Mon, 26 Mar 2018 17:07:26 +0800 NYC 哦,这样啊。那从registry.docker-cn.com直接拉能拉下来吗(直接把本地镜像库设置成这个)?如果也不行,那就和你搭建方式没关系了。如果可以,那就看下你registry的日志,看下拉microsoft/dotnet之类镜像的时候有没有什么错误日志。

]]>
http://niyanchun.com/deploy-registry-mirror.html/comment-page-1#comment-445#comments
bubble http://niyanchun.com/deploy-registry-mirror.html/comment-page-1#comment-444 http://niyanchun.com/deploy-registry-mirror.html/comment-page-1#comment-444 Mon, 26 Mar 2018 16:51:26 +0800 bubble 可能是我没说明白吧。我的意思registry镜像模式下,docker官方的镜像,比如library目录的镜像,如(nginx,mysql,mariadb,node .etc)等没问题,但是社区镜像,例如微软旗下的microsoft,比如gitlab的gitlab,他们的镜像都无法pull。
另外,我的registry的上游设置的是registry.docker-cn.com

]]>
http://niyanchun.com/deploy-registry-mirror.html/comment-page-1#comment-444#comments
NYC http://niyanchun.com/deploy-registry-mirror.html/comment-page-1#comment-443 http://niyanchun.com/deploy-registry-mirror.html/comment-page-1#comment-443 Mon, 26 Mar 2018 16:45:23 +0800 NYC 死活pull不下来最大的两种可能是:1. 镜像不存在。2. 网络问题,比如google镜像仓库的国内没梯子就pull不下来。所以,你可以先单独docker pull一下,看是是哪个问题。我估计可能是网络问题。

]]>
http://niyanchun.com/deploy-registry-mirror.html/comment-page-1#comment-443#comments
bubble http://niyanchun.com/deploy-registry-mirror.html/comment-page-1#comment-442 http://niyanchun.com/deploy-registry-mirror.html/comment-page-1#comment-442 Mon, 26 Mar 2018 15:07:02 +0800 bubble ps: 我用的是harbor
registry配置如下

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
]]>
http://niyanchun.com/deploy-registry-mirror.html/comment-page-1#comment-442#comments
bubble http://niyanchun.com/deploy-registry-mirror.html/comment-page-1#comment-441 http://niyanchun.com/deploy-registry-mirror.html/comment-page-1#comment-441 Mon, 26 Mar 2018 15:05:26 +0800 bubble 我部署registry镜像遇到个问题,只有library/xxxxx这样的镜像能pull下来,其他的社区镜像,比如microsoft/dotnet 这种镜像死活pull不下来,不知道是什么问题,求大神指点。

]]>
http://niyanchun.com/deploy-registry-mirror.html/comment-page-1#comment-441#comments