简体   繁体   English

Docker 注册表未在代理模式下拉取图像

[英]Docker registry not pulling images in proxy mode

I cant get docker-registry to run in proxy mode.我无法让 docker-registry 在代理模式下运行。 I've set up a registry with the following configuration:我已经使用以下配置设置了注册表:

version: 0.1
storage:
  filesystem:
    rootdirectory: /var/lib/registry
proxy:
  remoteUrl: https://index.docker.io/v1
http:
  addr: :5000
  host: https://[DOMAIN]

The registry is running in a kube cluster with an exposed service and ingress pointing the deployment.注册表在 kube 集群中运行,具有公开的服务和指向部署的入口。

In my gitlab runner I've set the registry-mirrors array in daemon.json config file to point to this server.在我的 gitlab 运行程序中,我在 daemon.json 配置文件中设置了注册表镜像数组以指向该服务器。

The docker-registry is clear and has no images pushed. docker-registry 很清晰,没有推送任何图像。 However, when I try to run a gitlab job (using node:lts image) I get 404 error from the registry.但是,当我尝试运行 gitlab 作业(使用节点:lts 图像)时,我从注册表中收到 404 错误。

This means, my docker gilab runner is trying to pull from my registry proxy, however the proxy cache won't serve the request.这意味着,我的 docker gilab 跑步者正试图从我的注册表代理中提取,但是代理缓存不会为请求提供服务。

Does the proxy mode should run out of the box, or are there any other manual steps required?代理模式是否应该开箱即用,还是需要任何其他手动步骤?

Thanks in advance.提前致谢。

Attaching logs from my registry:从我的注册表附加日志:

10.1.79.1 - - [15/May/2021:18:19:05 +0000] "HEAD /v2/library/node/manifests/lts HTTP/1.1" 404 93 "" "docker/20.10.6 go/go1.13.15 git-commit/8728dd2 kernel/4.15.0-1063-aws os/linux arch/amd64 UpstreamClient(Go-http-client/1.1)"
time="2021-05-15T18:19:05.743476401Z" level=error msg="response completed with error" err.code="manifest unknown" err.detail="unknown tag=lts" err.message="manifest unknown" go.version=go1.11.2 http.request.host=registry-proxy.bignetwork.dev http.request.id=7bb689b9-f7f0-4bc4-8730-b823737da0b9 http.request.method=GET http.request.remoteaddr=172.31.0.12 http.request.uri="/v2/library/node/manifests/lts" http.request.useragent="docker/20.10.6 go/go1.13.15 git-commit/8728dd2 kernel/4.15.0-1063-aws os/linux arch/amd64 UpstreamClient(Go-http-client/1.1)" http.response.contenttype="application/json; charset=utf-8" http.response.duration=1.24767ms http.response.status=404 http.response.written=93 vars.name="library/node" vars.reference=lts
10.1.79.1 - - [15/May/2021:18:19:05 +0000] "GET /v2/library/node/manifests/lts HTTP/1.1" 404 93 "" "docker/20.10.6 go/go1.13.15 git-commit/8728dd2 kernel/4.15.0-1063-aws os/linux arch/amd64 UpstreamClient(Go-http-client/1.1)"

The setting is remoteurl not remoteUrl .设置是remoteurl而不是remoteUrl The json fields are case sensitive. json 字段区分大小写。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在代理后面拉码头图像 - Pulling docker images behind a proxy JFrog Docker注册表未在Kubernetes中提取图像 - JFrog docker registry is not pulling images in Kubernetes 关于从Docker注册表中提取映像失败的困惑 - Confusion about failure of pulling images from docker registry 在Kubernetes内部运行私有docker注册表时出现问题 - Problem pulling images when running private docker registry inside of Kubernetes 如何在从注册表中提取图像时修复Docker的“错误拉动图像...太多重定向”失败? - How to fix Docker's “Error pulling image…too many redirects” failures while pulling images from registry? 无法从 Docker 代理/镜像/缓存注册表中删除图像 - Can't delete images from a Docker proxy / mirror / cache registry 拉码头图像 - Pulling docker images Docker使用Nexus OSS映像代理服务器(私有docker注册表)并重用其依赖图像 - Docker images proxy server (private docker registry) using Nexus OSS and reusing its dependency images Docker 即使在使用 --with-registry-auth 时,堆栈部署也不会从私有 resgistry 中提取图像 - Docker stack deploy not pulling images from private resgistry even when using --with-registry-auth Docker注册表不会更新映像 - Docker registry will not update images
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM