[英]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.