Skip to content

Proxy mode: error authentication required + http.response.status=500 #3842

Closed

Description

@MalibuKoKo

I have some troubles when using proxy mode with ECR Public Gallery i show some informations in logs :

  • http.response.status=500
  • level=error msg="response completed with error" err.code=unknown err.detail="unauthorized: authentication required"
  • msg="Increasing token expiration to: 60 seconds"

Used version

docker images
REPOSITORY                           TAG             IMAGE ID       CREATED        SIZE
registry                             2               0d153fadf70b   3 days ago     24.2MB
registry                             2.8.1           0d153fadf70b   3 days ago     24.2MB
registry                             latest          0d153fadf70b   3 days ago     24.2MB

How reproduce ?
Start 2 proxies + Kubernetes In Docker cluster

docker run -d --name proxy-docker-hub --restart=always --net=kind \
  -e REGISTRY_PROXY_REMOTEURL=https://registry-1.docker.io registry:2

docker run -d --name proxy-ecr-public-gallery --restart=always --net=kind \
  -e REGISTRY_PROXY_REMOTEURL=https://public.ecr.aws \
  -e REGISTRY_LOG_LEVEL=debug registry:2

kind create cluster --config /dev/stdin <<EOF
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
containerdConfigPatches:
  - |-
    [plugins."io.containerd.grpc.v1.cri".registry.mirrors."docker.io"]
      endpoint = ["http://proxy-docker-hub:5000"]
  - |-
    [plugins."io.containerd.grpc.v1.cri".registry.mirrors."public.ecr.aws"]
      endpoint = ["http://proxy-ecr-public-gallery:5000"]
EOF

Pull an image on docker.io registry

docker exec -it kind-control-plane crictl pull docker.io/library/alpine:3.9.6
docker logs proxy-docker-hub

logs:

time="2023-02-14T17:14:10.08931511Z" level=warning msg="No HTTP secret provided - generated random secret. This may cause problems with uploads if multiple registries are behind a load-balancer. To provide a shared secret, fill in http.secret in the configuration file or set the REGISTRY_HTTP_SECRET environment variable." go.version=go1.16.15 instance.id=7fc1bfc4-b7d7-4682-87b4-bc7a0ce67d9a service=registry version="v2.8.1+unknown" 
time="2023-02-14T17:14:10.089355073Z" level=info msg="redis not configured" go.version=go1.16.15 instance.id=7fc1bfc4-b7d7-4682-87b4-bc7a0ce67d9a service=registry version="v2.8.1+unknown" 
time="2023-02-14T17:14:10.089427934Z" level=info msg="Starting upload purge in 36m0s" go.version=go1.16.15 instance.id=7fc1bfc4-b7d7-4682-87b4-bc7a0ce67d9a service=registry version="v2.8.1+unknown" 
time="2023-02-14T17:14:10.097971217Z" level=info msg="using inmemory blob descriptor cache" go.version=go1.16.15 instance.id=7fc1bfc4-b7d7-4682-87b4-bc7a0ce67d9a service=registry version="v2.8.1+unknown" 
time="2023-02-14T17:14:10.098049052Z" level=info msg="Starting cached object TTL expiration scheduler..." go.version=go1.16.15 instance.id=7fc1bfc4-b7d7-4682-87b4-bc7a0ce67d9a service=registry version="v2.8.1+unknown" 
time="2023-02-14T17:14:10.516941871Z" level=info msg="Discovered token authentication URL: https://auth.docker.io/token" go.version=go1.16.15 instance.id=7fc1bfc4-b7d7-4682-87b4-bc7a0ce67d9a 
time="2023-02-14T17:14:10.516968448Z" level=info msg="Registry configured as a proxy cache to https://registry-1.docker.io" go.version=go1.16.15 instance.id=7fc1bfc4-b7d7-4682-87b4-bc7a0ce67d9a service=registry version="v2.8.1+unknown" 
time="2023-02-14T17:14:10.5169753Z" level=warning msg="Registry does not implement RempositoryRemover. Will not be able to delete repos and tags" go.version=go1.16.15 instance.id=7fc1bfc4-b7d7-4682-87b4-bc7a0ce67d9a service=registry version="v2.8.1+unknown" 
time="2023-02-14T17:14:10.51711189Z" level=info msg="listening on [::]:5000" go.version=go1.16.15 instance.id=7fc1bfc4-b7d7-4682-87b4-bc7a0ce67d9a service=registry version="v2.8.1+unknown" 
time="2023-02-14T17:14:29.136954929Z" level=info msg="Challenge established with upstream : {https   registry-1.docker.io /v2/  %!s(bool=false)   } &{{{%!s(int32=0) %!s(uint32=0)} %!s(uint32=0) %!s(uint32=0) %!s(int32=0) %!s(int32=0)} map[https://registry-1.docker.io:443/v2/:[{bearer map[realm:https://auth.docker.io/token service:registry.docker.io]}]]}" go.version=go1.16.15 http.request.host="proxy-docker-hub:5000" http.request.id=53ee3ba3-e792-499d-9d2e-64edb67eda45 http.request.method=HEAD http.request.remoteaddr="[fc00:f853:ccd:e793::4]:58856" http.request.uri="/v2/library/alpine/manifests/3.9.6?ns=docker.io" http.request.useragent="containerd/v1.6.4" vars.name="library/alpine" vars.reference=3.9.6 
time="2023-02-14T17:14:30.378611363Z" level=info msg="Adding new scheduler entry for library/alpine@sha256:414e0518bb9228d35e4cd5165567fb91d26c6a214e9c95899e1e056fcd349011 with ttl=167h59m59.999998347s" go.version=go1.16.15 instance.id=7fc1bfc4-b7d7-4682-87b4-bc7a0ce67d9a service=registry version="v2.8.1+unknown" 
time="2023-02-14T17:14:30.378726738Z" level=info msg="response completed" go.version=go1.16.15 http.request.host="proxy-docker-hub:5000" http.request.id=53ee3ba3-e792-499d-9d2e-64edb67eda45 http.request.method=HEAD http.request.remoteaddr="[fc00:f853:ccd:e793::4]:58856" http.request.uri="/v2/library/alpine/manifests/3.9.6?ns=docker.io" http.request.useragent="containerd/v1.6.4" http.response.contenttype="application/vnd.docker.distribution.manifest.list.v2+json" http.response.duration=1.647256311s http.response.status=200 http.response.written=1638 
fc00:f853:ccd:e793::4 - - [14/Feb/2023:17:14:28 +0000] "HEAD /v2/library/alpine/manifests/3.9.6?ns=docker.io HTTP/1.1" 200 1638 "" "containerd/v1.6.4"
fc00:f853:ccd:e793::4 - - [14/Feb/2023:17:14:30 +0000] "GET /v2/library/alpine/manifests/sha256:414e0518bb9228d35e4cd5165567fb91d26c6a214e9c95899e1e056fcd349011?ns=docker.io HTTP/1.1" 200 1638 "" "containerd/v1.6.4"
time="2023-02-14T17:14:30.389047256Z" level=info msg="response completed" go.version=go1.16.15 http.request.host="proxy-docker-hub:5000" http.request.id=ce999f7b-4909-4924-b84f-87a1d594bb65 http.request.method=GET http.request.remoteaddr="[fc00:f853:ccd:e793::4]:58860" http.request.uri="/v2/library/alpine/manifests/sha256:414e0518bb9228d35e4cd5165567fb91d26c6a214e9c95899e1e056fcd349011?ns=docker.io" http.request.useragent="containerd/v1.6.4" http.response.contenttype="application/vnd.docker.distribution.manifest.list.v2+json" http.response.duration=1.583656ms http.response.status=200 http.response.written=1638 
time="2023-02-14T17:14:30.781076315Z" level=info msg="Adding new scheduler entry for library/alpine@sha256:65b3a80ebe7471beecbc090c5b2cdd0aafeaefa0715f8f12e40dc918a3a70e32 with ttl=167h59m59.999997945s" go.version=go1.16.15 instance.id=7fc1bfc4-b7d7-4682-87b4-bc7a0ce67d9a service=registry version="v2.8.1+unknown" 
time="2023-02-14T17:14:30.781171203Z" level=info msg="response completed" go.version=go1.16.15 http.request.host="proxy-docker-hub:5000" http.request.id=00471d78-e8e4-49fe-b811-38625a4adcce http.request.method=GET http.request.remoteaddr="[fc00:f853:ccd:e793::4]:58860" http.request.uri="/v2/library/alpine/manifests/sha256:65b3a80ebe7471beecbc090c5b2cdd0aafeaefa0715f8f12e40dc918a3a70e32?ns=docker.io" http.request.useragent="containerd/v1.6.4" http.response.contenttype="application/vnd.docker.distribution.manifest.v2+json" http.response.duration=377.755215ms http.response.status=200 http.response.written=528 
fc00:f853:ccd:e793::4 - - [14/Feb/2023:17:14:30 +0000] "GET /v2/library/alpine/manifests/sha256:65b3a80ebe7471beecbc090c5b2cdd0aafeaefa0715f8f12e40dc918a3a70e32?ns=docker.io HTTP/1.1" 200 528 "" "containerd/v1.6.4"
time="2023-02-14T17:14:31.635658968Z" level=info msg="response completed" go.version=go1.16.15 http.request.host="proxy-docker-hub:5000" http.request.id=a99bb1ce-906c-48dd-a4d7-97b3ff374888 http.request.method=GET http.request.remoteaddr="[fc00:f853:ccd:e793::4]:58860" http.request.uri="/v2/library/alpine/blobs/sha256:78a2ce922f8665f5a227dc5cd9fda87221acba8a7a952b9665f99bc771a29963?ns=docker.io" http.request.useragent="containerd/v1.6.4" http.response.contenttype="application/octet-stream" http.response.duration=839.615692ms http.response.status=200 http.response.written=1509 
fc00:f853:ccd:e793::4 - - [14/Feb/2023:17:14:30 +0000] "GET /v2/library/alpine/blobs/sha256:78a2ce922f8665f5a227dc5cd9fda87221acba8a7a952b9665f99bc771a29963?ns=docker.io HTTP/1.1" 200 1509 "" "containerd/v1.6.4"
time="2023-02-14T17:14:31.781290311Z" level=info msg="Adding new scheduler entry for library/alpine@sha256:78a2ce922f8665f5a227dc5cd9fda87221acba8a7a952b9665f99bc771a29963 with ttl=167h59m59.99999836s" go.version=go1.16.15 instance.id=7fc1bfc4-b7d7-4682-87b4-bc7a0ce67d9a service=registry version="v2.8.1+unknown" 
time="2023-02-14T17:14:33.505324683Z" level=info msg="response completed" go.version=go1.16.15 http.request.host="proxy-docker-hub:5000" http.request.id=63cf4dd6-7de4-4022-9f39-d534f8098fb5 http.request.method=GET http.request.remoteaddr="[fc00:f853:ccd:e793::4]:58860" http.request.uri="/v2/library/alpine/blobs/sha256:31603596830fc7e56753139f9c2c6bd3759e48a850659506ebfb885d1cf3aef5?ns=docker.io" http.request.useragent="containerd/v1.6.4" http.response.contenttype="application/octet-stream" http.response.duration=1.845087114s http.response.status=200 http.response.written=2773413 
fc00:f853:ccd:e793::4 - - [14/Feb/2023:17:14:31 +0000] "GET /v2/library/alpine/blobs/sha256:31603596830fc7e56753139f9c2c6bd3759e48a850659506ebfb885d1cf3aef5?ns=docker.io HTTP/1.1" 200 2773413 "" "containerd/v1.6.4"
time="2023-02-14T17:14:33.546838784Z" level=info msg="Adding new scheduler entry for library/alpine@sha256:31603596830fc7e56753139f9c2c6bd3759e48a850659506ebfb885d1cf3aef5 with ttl=167h59m59.99999763s" go.version=go1.16.15 instance.id=7fc1bfc4-b7d7-4682-87b4-bc7a0ce67d9a service=registry version="v2.8.1+unknown"

No problem thanks this proxy...


Pull an image on public.ecr.aws registry

docker exec -it kind-control-plane crictl pull public.ecr.aws/bitnami/redis-exporter:1.26.0-debian-10-r2
docker logs proxy-ecr-public-gallery

logs:

time="2023-02-14T17:14:10.442486879Z" level=warning msg="No HTTP secret provided - generated random secret. This may cause problems with uploads if multiple registries are behind a load-balancer. To provide a shared secret, fill in http.secret in the configuration file or set the REGISTRY_HTTP_SECRET environment variable." go.version=go1.16.15 instance.id=7de5a7f0-0b15-4de1-a3cb-57ce6645325e service=registry version="v2.8.1+unknown" 
time="2023-02-14T17:14:10.442522665Z" level=info msg="redis not configured" go.version=go1.16.15 instance.id=7de5a7f0-0b15-4de1-a3cb-57ce6645325e service=registry version="v2.8.1+unknown" 
time="2023-02-14T17:14:10.442568611Z" level=info msg="Starting upload purge in 11m0s" go.version=go1.16.15 instance.id=7de5a7f0-0b15-4de1-a3cb-57ce6645325e service=registry version="v2.8.1+unknown" 
time="2023-02-14T17:14:10.449916294Z" level=info msg="using inmemory blob descriptor cache" go.version=go1.16.15 instance.id=7de5a7f0-0b15-4de1-a3cb-57ce6645325e service=registry version="v2.8.1+unknown" 
time="2023-02-14T17:14:10.449976829Z" level=debug msg="filesystem.Stat("/scheduler-state.json")" go.version=go1.16.15 instance.id=7de5a7f0-0b15-4de1-a3cb-57ce6645325e service=registry trace.duration=25.938µs trace.file="/go/src/github.com/docker/distribution/registry/storage/driver/base/base.go" trace.func="github.com/docker/distribution/registry/storage/driver/base.(*Base).Stat" trace.id=828331ae-41fa-4607-8224-39b0a0bcb53d trace.line=155 version="v2.8.1+unknown" 
time="2023-02-14T17:14:10.449986488Z" level=info msg="Starting cached object TTL expiration scheduler..." go.version=go1.16.15 instance.id=7de5a7f0-0b15-4de1-a3cb-57ce6645325e service=registry version="v2.8.1+unknown" 
time="2023-02-14T17:14:10.917568329Z" level=info msg="Discovered token authentication URL: https://public.ecr.aws/token/" go.version=go1.16.15 instance.id=7de5a7f0-0b15-4de1-a3cb-57ce6645325e 
time="2023-02-14T17:14:10.917593121Z" level=info msg="Registry configured as a proxy cache to https://public.ecr.aws" go.version=go1.16.15 instance.id=7de5a7f0-0b15-4de1-a3cb-57ce6645325e service=registry version="v2.8.1+unknown" 
time="2023-02-14T17:14:10.91760861Z" level=warning msg="Registry does not implement RempositoryRemover. Will not be able to delete repos and tags" go.version=go1.16.15 instance.id=7de5a7f0-0b15-4de1-a3cb-57ce6645325e service=registry version="v2.8.1+unknown" 
time="2023-02-14T17:14:10.917976868Z" level=info msg="listening on [::]:5000" go.version=go1.16.15 instance.id=7de5a7f0-0b15-4de1-a3cb-57ce6645325e service=registry version="v2.8.1+unknown" 
time="2023-02-14T17:14:20.917917567Z" level=debug msg="filesystem.Stat("/")" go.version=go1.16.15 instance.id=7de5a7f0-0b15-4de1-a3cb-57ce6645325e service=registry trace.duration=27.597µs trace.file="/go/src/github.com/docker/distribution/registry/storage/driver/base/base.go" trace.func="github.com/docker/distribution/registry/storage/driver/base.(*Base).Stat" trace.id=19045393-f3ad-4f7f-9d03-58f918c1b062 trace.line=155 version="v2.8.1+unknown" 
time="2023-02-14T17:14:30.918674167Z" level=debug msg="filesystem.Stat("/")" go.version=go1.16.15 instance.id=7de5a7f0-0b15-4de1-a3cb-57ce6645325e service=registry trace.duration=53.772µs trace.file="/go/src/github.com/docker/distribution/registry/storage/driver/base/base.go" trace.func="github.com/docker/distribution/registry/storage/driver/base.(*Base).Stat" trace.id=d2456dad-02da-4a4c-92df-2a85726b52f8 trace.line=155 version="v2.8.1+unknown" 
time="2023-02-14T17:14:40.918556077Z" level=debug msg="filesystem.Stat("/")" go.version=go1.16.15 instance.id=7de5a7f0-0b15-4de1-a3cb-57ce6645325e service=registry trace.duration=64.568µs trace.file="/go/src/github.com/docker/distribution/registry/storage/driver/base/base.go" trace.func="github.com/docker/distribution/registry/storage/driver/base.(*Base).Stat" trace.id=46448c16-f454-464b-909c-b78917bff4f5 trace.line=155 version="v2.8.1+unknown" 
time="2023-02-14T17:14:50.918601439Z" level=debug msg="filesystem.Stat("/")" go.version=go1.16.15 instance.id=7de5a7f0-0b15-4de1-a3cb-57ce6645325e service=registry trace.duration=36.098µs trace.file="/go/src/github.com/docker/distribution/registry/storage/driver/base/base.go" trace.func="github.com/docker/distribution/registry/storage/driver/base.(*Base).Stat" trace.id=78c85a52-e4d5-48d5-8fb8-a292902561c1 trace.line=155 version="v2.8.1+unknown" 
time="2023-02-14T17:15:00.918272041Z" level=debug msg="filesystem.Stat("/")" go.version=go1.16.15 instance.id=7de5a7f0-0b15-4de1-a3cb-57ce6645325e service=registry trace.duration=24.243µs trace.file="/go/src/github.com/docker/distribution/registry/storage/driver/base/base.go" trace.func="github.com/docker/distribution/registry/storage/driver/base.(*Base).Stat" trace.id=af0974a3-78b3-4a17-8b35-e393d43d0814 trace.line=155 version="v2.8.1+unknown" 
time="2023-02-14T17:15:10.918506628Z" level=debug msg="filesystem.Stat("/")" go.version=go1.16.15 instance.id=7de5a7f0-0b15-4de1-a3cb-57ce6645325e service=registry trace.duration=32.985µs trace.file="/go/src/github.com/docker/distribution/registry/storage/driver/base/base.go" trace.func="github.com/docker/distribution/registry/storage/driver/base.(*Base).Stat" trace.id=1a28ece7-e583-4e88-9b78-2041534b558e trace.line=155 version="v2.8.1+unknown" 
time="2023-02-14T17:15:19.768426444Z" level=debug msg="authorizing request" go.version=go1.16.15 http.request.host="proxy-ecr-public-gallery:5000" http.request.id=3e2516be-082b-4229-a6bb-06463d4ec96d http.request.method=HEAD http.request.remoteaddr="[fc00:f853:ccd:e793::4]:58282" http.request.uri="/v2/bitnami/redis-exporter/manifests/1.26.0-debian-10-r2?ns=public.ecr.aws" http.request.useragent="containerd/v1.6.4" vars.name="bitnami/redis-exporter" vars.reference=1.26.0-debian-10-r2 
time="2023-02-14T17:15:19.76881784Z" level=debug msg=GetImageManifest go.version=go1.16.15 http.request.host="proxy-ecr-public-gallery:5000" http.request.id=3e2516be-082b-4229-a6bb-06463d4ec96d http.request.method=HEAD http.request.remoteaddr="[fc00:f853:ccd:e793::4]:58282" http.request.uri="/v2/bitnami/redis-exporter/manifests/1.26.0-debian-10-r2?ns=public.ecr.aws" http.request.useragent="containerd/v1.6.4" vars.name="bitnami/redis-exporter" vars.reference=1.26.0-debian-10-r2 
time="2023-02-14T17:15:20.338241557Z" level=info msg="Challenge established with upstream : {https   public.ecr.aws /v2/  %!s(bool=false)   } &{{{%!s(int32=0) %!s(uint32=0)} %!s(uint32=0) %!s(uint32=0) %!s(int32=0) %!s(int32=0)} map[https://public.ecr.aws:443/v2/:[{bearer map[realm:https://public.ecr.aws/token/ scope:aws service:public.ecr.aws]}]]}" go.version=go1.16.15 http.request.host="proxy-ecr-public-gallery:5000" http.request.id=3e2516be-082b-4229-a6bb-06463d4ec96d http.request.method=HEAD http.request.remoteaddr="[fc00:f853:ccd:e793::4]:58282" http.request.uri="/v2/bitnami/redis-exporter/manifests/1.26.0-debian-10-r2?ns=public.ecr.aws" http.request.useragent="containerd/v1.6.4" vars.name="bitnami/redis-exporter" vars.reference=1.26.0-debian-10-r2 
time="2023-02-14T17:15:20.45949664Z" level=debug msg="Increasing token expiration to: 60 seconds" go.version=go1.16.15 http.request.host="proxy-ecr-public-gallery:5000" http.request.id=3e2516be-082b-4229-a6bb-06463d4ec96d http.request.method=HEAD http.request.remoteaddr="[fc00:f853:ccd:e793::4]:58282" http.request.uri="/v2/bitnami/redis-exporter/manifests/1.26.0-debian-10-r2?ns=public.ecr.aws" http.request.useragent="containerd/v1.6.4" vars.name="bitnami/redis-exporter" vars.reference=1.26.0-debian-10-r2 
time="2023-02-14T17:15:20.653295049Z" level=debug msg="filesystem.PutContent("/docker/registry/v2/repositories/bitnami/redis-exporter/_manifests/tags/1.26.0-debian-10-r2/index/sha256/61aa6f58f85fe21e24e86ee893c2a8a9ee8a1752216704855e7f08dd397a9aae/link")" go.version=go1.16.15 http.request.host="proxy-ecr-public-gallery:5000" http.request.id=3e2516be-082b-4229-a6bb-06463d4ec96d http.request.method=HEAD http.request.remoteaddr="[fc00:f853:ccd:e793::4]:58282" http.request.uri="/v2/bitnami/redis-exporter/manifests/1.26.0-debian-10-r2?ns=public.ecr.aws" http.request.useragent="containerd/v1.6.4" trace.duration=2.896501ms trace.file="/go/src/github.com/docker/distribution/registry/storage/driver/base/base.go" trace.func="github.com/docker/distribution/registry/storage/driver/base.(*Base).PutContent" trace.id=c57aa852-9749-4405-87c8-76548410062d trace.line=110 vars.name="bitnami/redis-exporter" vars.reference=1.26.0-debian-10-r2 
time="2023-02-14T17:15:20.655675301Z" level=debug msg="filesystem.PutContent("/docker/registry/v2/repositories/bitnami/redis-exporter/_manifests/tags/1.26.0-debian-10-r2/current/link")" go.version=go1.16.15 http.request.host="proxy-ecr-public-gallery:5000" http.request.id=3e2516be-082b-4229-a6bb-06463d4ec96d http.request.method=HEAD http.request.remoteaddr="[fc00:f853:ccd:e793::4]:58282" http.request.uri="/v2/bitnami/redis-exporter/manifests/1.26.0-debian-10-r2?ns=public.ecr.aws" http.request.useragent="containerd/v1.6.4" trace.duration=2.310689ms trace.file="/go/src/github.com/docker/distribution/registry/storage/driver/base/base.go" trace.func="github.com/docker/distribution/registry/storage/driver/base.(*Base).PutContent" trace.id=67c64541-56b8-425f-a7be-79cda6ba76f1 trace.line=110 vars.name="bitnami/redis-exporter" vars.reference=1.26.0-debian-10-r2 
time="2023-02-14T17:15:20.655697638Z" level=debug msg="(*manifestStore).Get" go.version=go1.16.15 http.request.host="proxy-ecr-public-gallery:5000" http.request.id=3e2516be-082b-4229-a6bb-06463d4ec96d http.request.method=HEAD http.request.remoteaddr="[fc00:f853:ccd:e793::4]:58282" http.request.uri="/v2/bitnami/redis-exporter/manifests/1.26.0-debian-10-r2?ns=public.ecr.aws" http.request.useragent="containerd/v1.6.4" vars.name="bitnami/redis-exporter" vars.reference=1.26.0-debian-10-r2 
time="2023-02-14T17:15:20.655766917Z" level=debug msg="filesystem.GetContent("/docker/registry/v2/repositories/bitnami/redis-exporter/_manifests/revisions/sha256/61aa6f58f85fe21e24e86ee893c2a8a9ee8a1752216704855e7f08dd397a9aae/link")" go.version=go1.16.15 http.request.host="proxy-ecr-public-gallery:5000" http.request.id=3e2516be-082b-4229-a6bb-06463d4ec96d http.request.method=HEAD http.request.remoteaddr="[fc00:f853:ccd:e793::4]:58282" http.request.uri="/v2/bitnami/redis-exporter/manifests/1.26.0-debian-10-r2?ns=public.ecr.aws" http.request.useragent="containerd/v1.6.4" trace.duration=40.596µs trace.file="/go/src/github.com/docker/distribution/registry/storage/driver/base/base.go" trace.func="github.com/docker/distribution/registry/storage/driver/base.(*Base).GetContent" trace.id=c0030075-89d9-4103-91b4-acd1b3d81200 trace.line=95 vars.name="bitnami/redis-exporter" vars.reference=1.26.0-debian-10-r2 
time="2023-02-14T17:15:20.655802161Z" level=debug msg="filesystem.GetContent("/docker/registry/v2/repositories/bitnami/redis-exporter/_layers/sha256/61aa6f58f85fe21e24e86ee893c2a8a9ee8a1752216704855e7f08dd397a9aae/link")" go.version=go1.16.15 http.request.host="proxy-ecr-public-gallery:5000" http.request.id=3e2516be-082b-4229-a6bb-06463d4ec96d http.request.method=HEAD http.request.remoteaddr="[fc00:f853:ccd:e793::4]:58282" http.request.uri="/v2/bitnami/redis-exporter/manifests/1.26.0-debian-10-r2?ns=public.ecr.aws" http.request.useragent="containerd/v1.6.4" trace.duration=12.201µs trace.file="/go/src/github.com/docker/distribution/registry/storage/driver/base/base.go" trace.func="github.com/docker/distribution/registry/storage/driver/base.(*Base).GetContent" trace.id=e737929b-7dfd-4440-9cdb-129cf44d0256 trace.line=95 vars.name="bitnami/redis-exporter" vars.reference=1.26.0-debian-10-r2 
time="2023-02-14T17:15:20.816024292Z" level=debug msg="(*manifestStore).Put" go.version=go1.16.15 http.request.host="proxy-ecr-public-gallery:5000" http.request.id=3e2516be-082b-4229-a6bb-06463d4ec96d http.request.method=HEAD http.request.remoteaddr="[fc00:f853:ccd:e793::4]:58282" http.request.uri="/v2/bitnami/redis-exporter/manifests/1.26.0-debian-10-r2?ns=public.ecr.aws" http.request.useragent="containerd/v1.6.4" vars.name="bitnami/redis-exporter" vars.reference=1.26.0-debian-10-r2 
time="2023-02-14T17:15:20.816054236Z" level=debug msg="(*schema2ManifestHandler).Put" go.version=go1.16.15 http.request.host="proxy-ecr-public-gallery:5000" http.request.id=3e2516be-082b-4229-a6bb-06463d4ec96d http.request.method=HEAD http.request.remoteaddr="[fc00:f853:ccd:e793::4]:58282" http.request.uri="/v2/bitnami/redis-exporter/manifests/1.26.0-debian-10-r2?ns=public.ecr.aws" http.request.useragent="containerd/v1.6.4" vars.name="bitnami/redis-exporter" vars.reference=1.26.0-debian-10-r2 
time="2023-02-14T17:15:20.816198151Z" level=debug msg="filesystem.Stat("/docker/registry/v2/blobs/sha256/61/61aa6f58f85fe21e24e86ee893c2a8a9ee8a1752216704855e7f08dd397a9aae/data")" go.version=go1.16.15 http.request.host="proxy-ecr-public-gallery:5000" http.request.id=3e2516be-082b-4229-a6bb-06463d4ec96d http.request.method=HEAD http.request.remoteaddr="[fc00:f853:ccd:e793::4]:58282" http.request.uri="/v2/bitnami/redis-exporter/manifests/1.26.0-debian-10-r2?ns=public.ecr.aws" http.request.useragent="containerd/v1.6.4" trace.duration=48.073µs trace.file="/go/src/github.com/docker/distribution/registry/storage/driver/base/base.go" trace.func="github.com/docker/distribution/registry/storage/driver/base.(*Base).Stat" trace.id=6ed9fd1c-3891-47d2-bd75-b2d341d84e39 trace.line=155 vars.name="bitnami/redis-exporter" vars.reference=1.26.0-debian-10-r2 
time="2023-02-14T17:15:20.82025554Z" level=debug msg="filesystem.PutContent("/docker/registry/v2/blobs/sha256/61/61aa6f58f85fe21e24e86ee893c2a8a9ee8a1752216704855e7f08dd397a9aae/data")" go.version=go1.16.15 http.request.host="proxy-ecr-public-gallery:5000" http.request.id=3e2516be-082b-4229-a6bb-06463d4ec96d http.request.method=HEAD http.request.remoteaddr="[fc00:f853:ccd:e793::4]:58282" http.request.uri="/v2/bitnami/redis-exporter/manifests/1.26.0-debian-10-r2?ns=public.ecr.aws" http.request.useragent="containerd/v1.6.4" trace.duration=4.016054ms trace.file="/go/src/github.com/docker/distribution/registry/storage/driver/base/base.go" trace.func="github.com/docker/distribution/registry/storage/driver/base.(*Base).PutContent" trace.id=1e7d278c-58cc-43c5-bc7b-4a1c4889c651 trace.line=110 vars.name="bitnami/redis-exporter" vars.reference=1.26.0-debian-10-r2 
time="2023-02-14T17:15:20.822280565Z" level=debug msg="filesystem.PutContent("/docker/registry/v2/repositories/bitnami/redis-exporter/_manifests/revisions/sha256/61aa6f58f85fe21e24e86ee893c2a8a9ee8a1752216704855e7f08dd397a9aae/link")" go.version=go1.16.15 http.request.host="proxy-ecr-public-gallery:5000" http.request.id=3e2516be-082b-4229-a6bb-06463d4ec96d http.request.method=HEAD http.request.remoteaddr="[fc00:f853:ccd:e793::4]:58282" http.request.uri="/v2/bitnami/redis-exporter/manifests/1.26.0-debian-10-r2?ns=public.ecr.aws" http.request.useragent="containerd/v1.6.4" trace.duration=1.979292ms trace.file="/go/src/github.com/docker/distribution/registry/storage/driver/base/base.go" trace.func="github.com/docker/distribution/registry/storage/driver/base.(*Base).PutContent" trace.id=4ec8a1c7-052a-4920-805f-91ace8bad7e6 trace.line=110 vars.name="bitnami/redis-exporter" vars.reference=1.26.0-debian-10-r2 
time="2023-02-14T17:15:20.822303574Z" level=info msg="Adding new scheduler entry for bitnami/redis-exporter@sha256:61aa6f58f85fe21e24e86ee893c2a8a9ee8a1752216704855e7f08dd397a9aae with ttl=167h59m59.999997786s" go.version=go1.16.15 instance.id=7de5a7f0-0b15-4de1-a3cb-57ce6645325e service=registry version="v2.8.1+unknown" 
time="2023-02-14T17:15:20.822399748Z" level=info msg="response completed" go.version=go1.16.15 http.request.host="proxy-ecr-public-gallery:5000" http.request.id=3e2516be-082b-4229-a6bb-06463d4ec96d http.request.method=HEAD http.request.remoteaddr="[fc00:f853:ccd:e793::4]:58282" http.request.uri="/v2/bitnami/redis-exporter/manifests/1.26.0-debian-10-r2?ns=public.ecr.aws" http.request.useragent="containerd/v1.6.4" http.response.contenttype="application/vnd.docker.distribution.manifest.v2+json" http.response.duration=1.054547892s http.response.status=200 http.response.written=1365 
fc00:f853:ccd:e793::4 - - [14/Feb/2023:17:15:19 +0000] "HEAD /v2/bitnami/redis-exporter/manifests/1.26.0-debian-10-r2?ns=public.ecr.aws HTTP/1.1" 200 1365 "" "containerd/v1.6.4"
time="2023-02-14T17:15:20.830965291Z" level=debug msg="authorizing request" go.version=go1.16.15 http.request.host="proxy-ecr-public-gallery:5000" http.request.id=9c3d8f00-dc55-4749-a9b7-f7c5c32b04da http.request.method=GET http.request.remoteaddr="[fc00:f853:ccd:e793::4]:58290" http.request.uri="/v2/bitnami/redis-exporter/manifests/sha256:61aa6f58f85fe21e24e86ee893c2a8a9ee8a1752216704855e7f08dd397a9aae?ns=public.ecr.aws" http.request.useragent="containerd/v1.6.4" vars.name="bitnami/redis-exporter" vars.reference="sha256:61aa6f58f85fe21e24e86ee893c2a8a9ee8a1752216704855e7f08dd397a9aae" 
time="2023-02-14T17:15:20.831322508Z" level=debug msg=GetImageManifest go.version=go1.16.15 http.request.host="proxy-ecr-public-gallery:5000" http.request.id=9c3d8f00-dc55-4749-a9b7-f7c5c32b04da http.request.method=GET http.request.remoteaddr="[fc00:f853:ccd:e793::4]:58290" http.request.uri="/v2/bitnami/redis-exporter/manifests/sha256:61aa6f58f85fe21e24e86ee893c2a8a9ee8a1752216704855e7f08dd397a9aae?ns=public.ecr.aws" http.request.useragent="containerd/v1.6.4" vars.name="bitnami/redis-exporter" vars.reference="sha256:61aa6f58f85fe21e24e86ee893c2a8a9ee8a1752216704855e7f08dd397a9aae" 
time="2023-02-14T17:15:20.831333446Z" level=debug msg="(*manifestStore).Get" go.version=go1.16.15 http.request.host="proxy-ecr-public-gallery:5000" http.request.id=9c3d8f00-dc55-4749-a9b7-f7c5c32b04da http.request.method=GET http.request.remoteaddr="[fc00:f853:ccd:e793::4]:58290" http.request.uri="/v2/bitnami/redis-exporter/manifests/sha256:61aa6f58f85fe21e24e86ee893c2a8a9ee8a1752216704855e7f08dd397a9aae?ns=public.ecr.aws" http.request.useragent="containerd/v1.6.4" vars.name="bitnami/redis-exporter" vars.reference="sha256:61aa6f58f85fe21e24e86ee893c2a8a9ee8a1752216704855e7f08dd397a9aae" 
time="2023-02-14T17:15:20.831403549Z" level=debug msg="filesystem.GetContent("/docker/registry/v2/repositories/bitnami/redis-exporter/_manifests/revisions/sha256/61aa6f58f85fe21e24e86ee893c2a8a9ee8a1752216704855e7f08dd397a9aae/link")" go.version=go1.16.15 http.request.host="proxy-ecr-public-gallery:5000" http.request.id=9c3d8f00-dc55-4749-a9b7-f7c5c32b04da http.request.method=GET http.request.remoteaddr="[fc00:f853:ccd:e793::4]:58290" http.request.uri="/v2/bitnami/redis-exporter/manifests/sha256:61aa6f58f85fe21e24e86ee893c2a8a9ee8a1752216704855e7f08dd397a9aae?ns=public.ecr.aws" http.request.useragent="containerd/v1.6.4" trace.duration=39.022µs trace.file="/go/src/github.com/docker/distribution/registry/storage/driver/base/base.go" trace.func="github.com/docker/distribution/registry/storage/driver/base.(*Base).GetContent" trace.id=0c0bacb9-4625-4d04-a424-b88e8fb80edb trace.line=95 vars.name="bitnami/redis-exporter" vars.reference="sha256:61aa6f58f85fe21e24e86ee893c2a8a9ee8a1752216704855e7f08dd397a9aae" 
time="2023-02-14T17:15:20.83145175Z" level=debug msg="filesystem.Stat("/docker/registry/v2/blobs/sha256/61/61aa6f58f85fe21e24e86ee893c2a8a9ee8a1752216704855e7f08dd397a9aae/data")" go.version=go1.16.15 http.request.host="proxy-ecr-public-gallery:5000" http.request.id=9c3d8f00-dc55-4749-a9b7-f7c5c32b04da http.request.method=GET http.request.remoteaddr="[fc00:f853:ccd:e793::4]:58290" http.request.uri="/v2/bitnami/redis-exporter/manifests/sha256:61aa6f58f85fe21e24e86ee893c2a8a9ee8a1752216704855e7f08dd397a9aae?ns=public.ecr.aws" http.request.useragent="containerd/v1.6.4" trace.duration=10.858µs trace.file="/go/src/github.com/docker/distribution/registry/storage/driver/base/base.go" trace.func="github.com/docker/distribution/registry/storage/driver/base.(*Base).Stat" trace.id=67f84d56-a03b-4ecc-ab8d-bfd18951acdf trace.line=155 vars.name="bitnami/redis-exporter" vars.reference="sha256:61aa6f58f85fe21e24e86ee893c2a8a9ee8a1752216704855e7f08dd397a9aae" 
time="2023-02-14T17:15:20.831493749Z" level=debug msg="filesystem.Reader("/docker/registry/v2/blobs/sha256/61/61aa6f58f85fe21e24e86ee893c2a8a9ee8a1752216704855e7f08dd397a9aae/data", 0)" go.version=go1.16.15 http.request.host="proxy-ecr-public-gallery:5000" http.request.id=9c3d8f00-dc55-4749-a9b7-f7c5c32b04da http.request.method=GET http.request.remoteaddr="[fc00:f853:ccd:e793::4]:58290" http.request.uri="/v2/bitnami/redis-exporter/manifests/sha256:61aa6f58f85fe21e24e86ee893c2a8a9ee8a1752216704855e7f08dd397a9aae?ns=public.ecr.aws" http.request.useragent="containerd/v1.6.4" trace.duration=10.662µs trace.file="/go/src/github.com/docker/distribution/registry/storage/driver/base/base.go" trace.func="github.com/docker/distribution/registry/storage/driver/base.(*Base).Reader" trace.id=bd2909a6-f91f-41a2-b49c-b87075d855e5 trace.line=125 vars.name="bitnami/redis-exporter" vars.reference="sha256:61aa6f58f85fe21e24e86ee893c2a8a9ee8a1752216704855e7f08dd397a9aae" 
time="2023-02-14T17:15:20.831548208Z" level=debug msg="(*schema2ManifestHandler).Unmarshal" go.version=go1.16.15 http.request.host="proxy-ecr-public-gallery:5000" http.request.id=9c3d8f00-dc55-4749-a9b7-f7c5c32b04da http.request.method=GET http.request.remoteaddr="[fc00:f853:ccd:e793::4]:58290" http.request.uri="/v2/bitnami/redis-exporter/manifests/sha256:61aa6f58f85fe21e24e86ee893c2a8a9ee8a1752216704855e7f08dd397a9aae?ns=public.ecr.aws" http.request.useragent="containerd/v1.6.4" vars.name="bitnami/redis-exporter" vars.reference="sha256:61aa6f58f85fe21e24e86ee893c2a8a9ee8a1752216704855e7f08dd397a9aae" 
time="2023-02-14T17:15:20.83164269Z" level=info msg="response completed" go.version=go1.16.15 http.request.host="proxy-ecr-public-gallery:5000" http.request.id=9c3d8f00-dc55-4749-a9b7-f7c5c32b04da http.request.method=GET http.request.remoteaddr="[fc00:f853:ccd:e793::4]:58290" http.request.uri="/v2/bitnami/redis-exporter/manifests/sha256:61aa6f58f85fe21e24e86ee893c2a8a9ee8a1752216704855e7f08dd397a9aae?ns=public.ecr.aws" http.request.useragent="containerd/v1.6.4" http.response.contenttype="application/vnd.docker.distribution.manifest.v2+json" http.response.duration=1.679085ms http.response.status=200 http.response.written=1365 
fc00:f853:ccd:e793::4 - - [14/Feb/2023:17:15:20 +0000] "GET /v2/bitnami/redis-exporter/manifests/sha256:61aa6f58f85fe21e24e86ee893c2a8a9ee8a1752216704855e7f08dd397a9aae?ns=public.ecr.aws HTTP/1.1" 200 1365 "" "containerd/v1.6.4"
time="2023-02-14T17:15:20.846175461Z" level=debug msg="authorizing request" go.version=go1.16.15 http.request.host="proxy-ecr-public-gallery:5000" http.request.id=a6a2bdc1-c3e8-4032-8fa7-c6df075f7dfb http.request.method=GET http.request.remoteaddr="[fc00:f853:ccd:e793::4]:58290" http.request.uri="/v2/bitnami/redis-exporter/blobs/sha256:9b60a68e31e3c19381c2612e3f5b50c7793c1dbf87b50a8e5f9d203dc979107a?ns=public.ecr.aws" http.request.useragent="containerd/v1.6.4" vars.digest="sha256:9b60a68e31e3c19381c2612e3f5b50c7793c1dbf87b50a8e5f9d203dc979107a" vars.name="bitnami/redis-exporter" 
time="2023-02-14T17:15:20.846994906Z" level=debug msg=GetBlob go.version=go1.16.15 http.request.host="proxy-ecr-public-gallery:5000" http.request.id=a6a2bdc1-c3e8-4032-8fa7-c6df075f7dfb http.request.method=GET http.request.remoteaddr="[fc00:f853:ccd:e793::4]:58290" http.request.uri="/v2/bitnami/redis-exporter/blobs/sha256:9b60a68e31e3c19381c2612e3f5b50c7793c1dbf87b50a8e5f9d203dc979107a?ns=public.ecr.aws" http.request.useragent="containerd/v1.6.4" vars.digest="sha256:9b60a68e31e3c19381c2612e3f5b50c7793c1dbf87b50a8e5f9d203dc979107a" vars.name="bitnami/redis-exporter" 
time="2023-02-14T17:15:20.847059652Z" level=debug msg="filesystem.GetContent("/docker/registry/v2/repositories/bitnami/redis-exporter/_layers/sha256/9b60a68e31e3c19381c2612e3f5b50c7793c1dbf87b50a8e5f9d203dc979107a/link")" go.version=go1.16.15 http.request.host="proxy-ecr-public-gallery:5000" http.request.id=a6a2bdc1-c3e8-4032-8fa7-c6df075f7dfb http.request.method=GET http.request.remoteaddr="[fc00:f853:ccd:e793::4]:58290" http.request.uri="/v2/bitnami/redis-exporter/blobs/sha256:9b60a68e31e3c19381c2612e3f5b50c7793c1dbf87b50a8e5f9d203dc979107a?ns=public.ecr.aws" http.request.useragent="containerd/v1.6.4" trace.duration=17.504µs trace.file="/go/src/github.com/docker/distribution/registry/storage/driver/base/base.go" trace.func="github.com/docker/distribution/registry/storage/driver/base.(*Base).GetContent" trace.id=b9483d49-4b1c-47a5-8d3f-fc1dc73417fc trace.line=95 vars.digest="sha256:9b60a68e31e3c19381c2612e3f5b50c7793c1dbf87b50a8e5f9d203dc979107a" vars.name="bitnami/redis-exporter" 
time="2023-02-14T17:15:20.918285515Z" level=debug msg="filesystem.Stat("/")" go.version=go1.16.15 instance.id=7de5a7f0-0b15-4de1-a3cb-57ce6645325e service=registry trace.duration=30.722µs trace.file="/go/src/github.com/docker/distribution/registry/storage/driver/base/base.go" trace.func="github.com/docker/distribution/registry/storage/driver/base.(*Base).Stat" trace.id=88fed6db-9a3b-4350-8e8c-5717afe169dd trace.line=155 version="v2.8.1+unknown" 
time="2023-02-14T17:15:20.970362409Z" level=debug msg="Increasing token expiration to: 60 seconds" go.version=go1.16.15 http.request.host="proxy-ecr-public-gallery:5000" http.request.id=a6a2bdc1-c3e8-4032-8fa7-c6df075f7dfb http.request.method=GET http.request.remoteaddr="[fc00:f853:ccd:e793::4]:58290" http.request.uri="/v2/bitnami/redis-exporter/blobs/sha256:9b60a68e31e3c19381c2612e3f5b50c7793c1dbf87b50a8e5f9d203dc979107a?ns=public.ecr.aws" http.request.useragent="containerd/v1.6.4" vars.digest="sha256:9b60a68e31e3c19381c2612e3f5b50c7793c1dbf87b50a8e5f9d203dc979107a" vars.name="bitnami/redis-exporter" 
fc00:f853:ccd:e793::4 - - [14/Feb/2023:17:15:20 +0000] "GET /v2/bitnami/redis-exporter/blobs/sha256:9b60a68e31e3c19381c2612e3f5b50c7793c1dbf87b50a8e5f9d203dc979107a?ns=public.ecr.aws HTTP/1.1" 500 139 "" "containerd/v1.6.4"
time="2023-02-14T17:15:21.099723463Z" level=error msg="response completed with error" err.code=unknown err.detail="unauthorized: authentication required" err.message="unknown error" go.version=go1.16.15 http.request.host="proxy-ecr-public-gallery:5000" http.request.id=a6a2bdc1-c3e8-4032-8fa7-c6df075f7dfb http.request.method=GET http.request.remoteaddr="[fc00:f853:ccd:e793::4]:58290" http.request.uri="/v2/bitnami/redis-exporter/blobs/sha256:9b60a68e31e3c19381c2612e3f5b50c7793c1dbf87b50a8e5f9d203dc979107a?ns=public.ecr.aws" http.request.useragent="containerd/v1.6.4" http.response.contenttype="application/json; charset=utf-8" http.response.duration=254.069697ms http.response.status=500 http.response.written=139 vars.digest="sha256:9b60a68e31e3c19381c2612e3f5b50c7793c1dbf87b50a8e5f9d203dc979107a" vars.name="bitnami/redis-exporter" 
time="2023-02-14T17:15:22.416228905Z" level=debug msg="authorizing request" go.version=go1.16.15 http.request.host="proxy-ecr-public-gallery:5000" http.request.id=fe5b8707-e76e-427d-8cae-a175af034de0 http.request.method=GET http.request.remoteaddr="[fc00:f853:ccd:e793::4]:58290" http.request.uri="/v2/bitnami/redis-exporter/blobs/sha256:d514e58dfa748f9da4fcd12f1e574f749d0b2ac66150b3f5b3d0a67a60bddb38?ns=public.ecr.aws" http.request.useragent="containerd/v1.6.4" vars.digest="sha256:d514e58dfa748f9da4fcd12f1e574f749d0b2ac66150b3f5b3d0a67a60bddb38" vars.name="bitnami/redis-exporter" 
time="2023-02-14T17:15:22.416922914Z" level=debug msg=GetBlob go.version=go1.16.15 http.request.host="proxy-ecr-public-gallery:5000" http.request.id=fe5b8707-e76e-427d-8cae-a175af034de0 http.request.method=GET http.request.remoteaddr="[fc00:f853:ccd:e793::4]:58290" http.request.uri="/v2/bitnami/redis-exporter/blobs/sha256:d514e58dfa748f9da4fcd12f1e574f749d0b2ac66150b3f5b3d0a67a60bddb38?ns=public.ecr.aws" http.request.useragent="containerd/v1.6.4" vars.digest="sha256:d514e58dfa748f9da4fcd12f1e574f749d0b2ac66150b3f5b3d0a67a60bddb38" vars.name="bitnami/redis-exporter" 
time="2023-02-14T17:15:22.417004939Z" level=debug msg="filesystem.GetContent("/docker/registry/v2/repositories/bitnami/redis-exporter/_layers/sha256/d514e58dfa748f9da4fcd12f1e574f749d0b2ac66150b3f5b3d0a67a60bddb38/link")" go.version=go1.16.15 http.request.host="proxy-ecr-public-gallery:5000" http.request.id=fe5b8707-e76e-427d-8cae-a175af034de0 http.request.method=GET http.request.remoteaddr="[fc00:f853:ccd:e793::4]:58290" http.request.uri="/v2/bitnami/redis-exporter/blobs/sha256:d514e58dfa748f9da4fcd12f1e574f749d0b2ac66150b3f5b3d0a67a60bddb38?ns=public.ecr.aws" http.request.useragent="containerd/v1.6.4" trace.duration=30.393µs trace.file="/go/src/github.com/docker/distribution/registry/storage/driver/base/base.go" trace.func="github.com/docker/distribution/registry/storage/driver/base.(*Base).GetContent" trace.id=2e8a1e9e-cc91-4038-b96c-340a803b6b9d trace.line=95 vars.digest="sha256:d514e58dfa748f9da4fcd12f1e574f749d0b2ac66150b3f5b3d0a67a60bddb38" vars.name="bitnami/redis-exporter" 
time="2023-02-14T17:15:22.421698215Z" level=debug msg="authorizing request" go.version=go1.16.15 http.request.host="proxy-ecr-public-gallery:5000" http.request.id=0df8d5de-3d23-4a10-9037-34192d338fff http.request.method=GET http.request.remoteaddr="[fc00:f853:ccd:e793::4]:58300" http.request.uri="/v2/bitnami/redis-exporter/blobs/sha256:3e46c1b1eaa219e6f7bc8a1cffb9e1d30f2db5f43354ce759d38f0a8074f7d57?ns=public.ecr.aws" http.request.useragent="containerd/v1.6.4" vars.digest="sha256:3e46c1b1eaa219e6f7bc8a1cffb9e1d30f2db5f43354ce759d38f0a8074f7d57" vars.name="bitnami/redis-exporter" 
time="2023-02-14T17:15:22.422235497Z" level=debug msg=GetBlob go.version=go1.16.15 http.request.host="proxy-ecr-public-gallery:5000" http.request.id=0df8d5de-3d23-4a10-9037-34192d338fff http.request.method=GET http.request.remoteaddr="[fc00:f853:ccd:e793::4]:58300" http.request.uri="/v2/bitnami/redis-exporter/blobs/sha256:3e46c1b1eaa219e6f7bc8a1cffb9e1d30f2db5f43354ce759d38f0a8074f7d57?ns=public.ecr.aws" http.request.useragent="containerd/v1.6.4" vars.digest="sha256:3e46c1b1eaa219e6f7bc8a1cffb9e1d30f2db5f43354ce759d38f0a8074f7d57" vars.name="bitnami/redis-exporter" 
time="2023-02-14T17:15:22.422321102Z" level=debug msg="filesystem.GetContent("/docker/registry/v2/repositories/bitnami/redis-exporter/_layers/sha256/3e46c1b1eaa219e6f7bc8a1cffb9e1d30f2db5f43354ce759d38f0a8074f7d57/link")" go.version=go1.16.15 http.request.host="proxy-ecr-public-gallery:5000" http.request.id=0df8d5de-3d23-4a10-9037-34192d338fff http.request.method=GET http.request.remoteaddr="[fc00:f853:ccd:e793::4]:58300" http.request.uri="/v2/bitnami/redis-exporter/blobs/sha256:3e46c1b1eaa219e6f7bc8a1cffb9e1d30f2db5f43354ce759d38f0a8074f7d57?ns=public.ecr.aws" http.request.useragent="containerd/v1.6.4" trace.duration=35.05µs trace.file="/go/src/github.com/docker/distribution/registry/storage/driver/base/base.go" trace.func="github.com/docker/distribution/registry/storage/driver/base.(*Base).GetContent" trace.id=2daa1bd2-2af4-4e6e-9146-90a8c548c4c3 trace.line=95 vars.digest="sha256:3e46c1b1eaa219e6f7bc8a1cffb9e1d30f2db5f43354ce759d38f0a8074f7d57" vars.name="bitnami/redis-exporter" 
time="2023-02-14T17:15:22.427307115Z" level=debug msg="authorizing request" go.version=go1.16.15 http.request.host="proxy-ecr-public-gallery:5000" http.request.id=f6e41df1-05eb-4344-bf1d-226abd9954cc http.request.method=GET http.request.remoteaddr="[fc00:f853:ccd:e793::4]:58312" http.request.uri="/v2/bitnami/redis-exporter/blobs/sha256:2e4c6c15aa52fff9ebf552bfd68804e35f0e724a0aac8c254e1e4bf31c704d29?ns=public.ecr.aws" http.request.useragent="containerd/v1.6.4" vars.digest="sha256:2e4c6c15aa52fff9ebf552bfd68804e35f0e724a0aac8c254e1e4bf31c704d29" vars.name="bitnami/redis-exporter" 
time="2023-02-14T17:15:22.427745078Z" level=debug msg=GetBlob go.version=go1.16.15 http.request.host="proxy-ecr-public-gallery:5000" http.request.id=f6e41df1-05eb-4344-bf1d-226abd9954cc http.request.method=GET http.request.remoteaddr="[fc00:f853:ccd:e793::4]:58312" http.request.uri="/v2/bitnami/redis-exporter/blobs/sha256:2e4c6c15aa52fff9ebf552bfd68804e35f0e724a0aac8c254e1e4bf31c704d29?ns=public.ecr.aws" http.request.useragent="containerd/v1.6.4" vars.digest="sha256:2e4c6c15aa52fff9ebf552bfd68804e35f0e724a0aac8c254e1e4bf31c704d29" vars.name="bitnami/redis-exporter" 
time="2023-02-14T17:15:22.427810094Z" level=debug msg="filesystem.GetContent("/docker/registry/v2/repositories/bitnami/redis-exporter/_layers/sha256/2e4c6c15aa52fff9ebf552bfd68804e35f0e724a0aac8c254e1e4bf31c704d29/link")" go.version=go1.16.15 http.request.host="proxy-ecr-public-gallery:5000" http.request.id=f6e41df1-05eb-4344-bf1d-226abd9954cc http.request.method=GET http.request.remoteaddr="[fc00:f853:ccd:e793::4]:58312" http.request.uri="/v2/bitnami/redis-exporter/blobs/sha256:2e4c6c15aa52fff9ebf552bfd68804e35f0e724a0aac8c254e1e4bf31c704d29?ns=public.ecr.aws" http.request.useragent="containerd/v1.6.4" trace.duration=26.001µs trace.file="/go/src/github.com/docker/distribution/registry/storage/driver/base/base.go" trace.func="github.com/docker/distribution/registry/storage/driver/base.(*Base).GetContent" trace.id=f433d057-9b35-4b86-86f0-c91cf0459064 trace.line=95 vars.digest="sha256:2e4c6c15aa52fff9ebf552bfd68804e35f0e724a0aac8c254e1e4bf31c704d29" vars.name="bitnami/redis-exporter" 
time="2023-02-14T17:15:22.531181049Z" level=debug msg="Increasing token expiration to: 60 seconds" go.version=go1.16.15 http.request.host="proxy-ecr-public-gallery:5000" http.request.id=fe5b8707-e76e-427d-8cae-a175af034de0 http.request.method=GET http.request.remoteaddr="[fc00:f853:ccd:e793::4]:58290" http.request.uri="/v2/bitnami/redis-exporter/blobs/sha256:d514e58dfa748f9da4fcd12f1e574f749d0b2ac66150b3f5b3d0a67a60bddb38?ns=public.ecr.aws" http.request.useragent="containerd/v1.6.4" vars.digest="sha256:d514e58dfa748f9da4fcd12f1e574f749d0b2ac66150b3f5b3d0a67a60bddb38" vars.name="bitnami/redis-exporter" 
time="2023-02-14T17:15:22.538639729Z" level=debug msg="Increasing token expiration to: 60 seconds" go.version=go1.16.15 http.request.host="proxy-ecr-public-gallery:5000" http.request.id=0df8d5de-3d23-4a10-9037-34192d338fff http.request.method=GET http.request.remoteaddr="[fc00:f853:ccd:e793::4]:58300" http.request.uri="/v2/bitnami/redis-exporter/blobs/sha256:3e46c1b1eaa219e6f7bc8a1cffb9e1d30f2db5f43354ce759d38f0a8074f7d57?ns=public.ecr.aws" http.request.useragent="containerd/v1.6.4" vars.digest="sha256:3e46c1b1eaa219e6f7bc8a1cffb9e1d30f2db5f43354ce759d38f0a8074f7d57" vars.name="bitnami/redis-exporter" 
time="2023-02-14T17:15:22.5386706Z" level=debug msg="Increasing token expiration to: 60 seconds" go.version=go1.16.15 http.request.host="proxy-ecr-public-gallery:5000" http.request.id=f6e41df1-05eb-4344-bf1d-226abd9954cc http.request.method=GET http.request.remoteaddr="[fc00:f853:ccd:e793::4]:58312" http.request.uri="/v2/bitnami/redis-exporter/blobs/sha256:2e4c6c15aa52fff9ebf552bfd68804e35f0e724a0aac8c254e1e4bf31c704d29?ns=public.ecr.aws" http.request.useragent="containerd/v1.6.4" vars.digest="sha256:2e4c6c15aa52fff9ebf552bfd68804e35f0e724a0aac8c254e1e4bf31c704d29" vars.name="bitnami/redis-exporter" 
time="2023-02-14T17:15:22.659340943Z" level=error msg="response completed with error" err.code=unknown err.detail="unauthorized: authentication required" err.message="unknown error" go.version=go1.16.15 http.request.host="proxy-ecr-public-gallery:5000" http.request.id=0df8d5de-3d23-4a10-9037-34192d338fff http.request.method=GET http.request.remoteaddr="[fc00:f853:ccd:e793::4]:58300" http.request.uri="/v2/bitnami/redis-exporter/blobs/sha256:3e46c1b1eaa219e6f7bc8a1cffb9e1d30f2db5f43354ce759d38f0a8074f7d57?ns=public.ecr.aws" http.request.useragent="containerd/v1.6.4" http.response.contenttype="application/json; charset=utf-8" http.response.duration=239.017668ms http.response.status=500 http.response.written=139 vars.digest="sha256:3e46c1b1eaa219e6f7bc8a1cffb9e1d30f2db5f43354ce759d38f0a8074f7d57" vars.name="bitnami/redis-exporter" 
time="2023-02-14T17:15:22.659381308Z" level=error msg="response completed with error" err.code=unknown err.detail="unauthorized: authentication required" err.message="unknown error" go.version=go1.16.15 http.request.host="proxy-ecr-public-gallery:5000" http.request.id=f6e41df1-05eb-4344-bf1d-226abd9954cc http.request.method=GET http.request.remoteaddr="[fc00:f853:ccd:e793::4]:58312" http.request.uri="/v2/bitnami/redis-exporter/blobs/sha256:2e4c6c15aa52fff9ebf552bfd68804e35f0e724a0aac8c254e1e4bf31c704d29?ns=public.ecr.aws" http.request.useragent="containerd/v1.6.4" http.response.contenttype="application/json; charset=utf-8" http.response.duration=232.942914ms http.response.status=500 http.response.written=139 vars.digest="sha256:2e4c6c15aa52fff9ebf552bfd68804e35f0e724a0aac8c254e1e4bf31c704d29" vars.name="bitnami/redis-exporter" 
fc00:f853:ccd:e793::4 - - [14/Feb/2023:17:15:22 +0000] "GET /v2/bitnami/redis-exporter/blobs/sha256:3e46c1b1eaa219e6f7bc8a1cffb9e1d30f2db5f43354ce759d38f0a8074f7d57?ns=public.ecr.aws HTTP/1.1" 500 139 "" "containerd/v1.6.4"
fc00:f853:ccd:e793::4 - - [14/Feb/2023:17:15:22 +0000] "GET /v2/bitnami/redis-exporter/blobs/sha256:2e4c6c15aa52fff9ebf552bfd68804e35f0e724a0aac8c254e1e4bf31c704d29?ns=public.ecr.aws HTTP/1.1" 500 139 "" "containerd/v1.6.4"
fc00:f853:ccd:e793::4 - - [14/Feb/2023:17:15:22 +0000] "GET /v2/bitnami/redis-exporter/blobs/sha256:d514e58dfa748f9da4fcd12f1e574f749d0b2ac66150b3f5b3d0a67a60bddb38?ns=public.ecr.aws HTTP/1.1" 500 139 "" "containerd/v1.6.4"
time="2023-02-14T17:15:22.665305182Z" level=error msg="response completed with error" err.code=unknown err.detail="unauthorized: authentication required" err.message="unknown error" go.version=go1.16.15 http.request.host="proxy-ecr-public-gallery:5000" http.request.id=fe5b8707-e76e-427d-8cae-a175af034de0 http.request.method=GET http.request.remoteaddr="[fc00:f853:ccd:e793::4]:58290" http.request.uri="/v2/bitnami/redis-exporter/blobs/sha256:d514e58dfa748f9da4fcd12f1e574f749d0b2ac66150b3f5b3d0a67a60bddb38?ns=public.ecr.aws" http.request.useragent="containerd/v1.6.4" http.response.contenttype="application/json; charset=utf-8" http.response.duration=250.698502ms http.response.status=500 http.response.written=139 vars.digest="sha256:d514e58dfa748f9da4fcd12f1e574f749d0b2ac66150b3f5b3d0a67a60bddb38" vars.name="bitnami/redis-exporter" 
time="2023-02-14T17:15:23.298170204Z" level=debug msg="authorizing request" go.version=go1.16.15 http.request.host="proxy-ecr-public-gallery:5000" http.request.id=8ae57611-79d1-4d35-9604-ed4fcb6c3f02 http.request.method=GET http.request.remoteaddr="[fc00:f853:ccd:e793::4]:58300" http.request.uri="/v2/bitnami/redis-exporter/blobs/sha256:d96b55c642425770191f25138b7271a6c32ef038eae61d22f99107e011793d8d?ns=public.ecr.aws" http.request.useragent="containerd/v1.6.4" vars.digest="sha256:d96b55c642425770191f25138b7271a6c32ef038eae61d22f99107e011793d8d" vars.name="bitnami/redis-exporter" 
time="2023-02-14T17:15:23.298604973Z" level=debug msg=GetBlob go.version=go1.16.15 http.request.host="proxy-ecr-public-gallery:5000" http.request.id=8ae57611-79d1-4d35-9604-ed4fcb6c3f02 http.request.method=GET http.request.remoteaddr="[fc00:f853:ccd:e793::4]:58300" http.request.uri="/v2/bitnami/redis-exporter/blobs/sha256:d96b55c642425770191f25138b7271a6c32ef038eae61d22f99107e011793d8d?ns=public.ecr.aws" http.request.useragent="containerd/v1.6.4" vars.digest="sha256:d96b55c642425770191f25138b7271a6c32ef038eae61d22f99107e011793d8d" vars.name="bitnami/redis-exporter" 
time="2023-02-14T17:15:23.298673967Z" level=debug msg="filesystem.GetContent("/docker/registry/v2/repositories/bitnami/redis-exporter/_layers/sha256/d96b55c642425770191f25138b7271a6c32ef038eae61d22f99107e011793d8d/link")" go.version=go1.16.15 http.request.host="proxy-ecr-public-gallery:5000" http.request.id=8ae57611-79d1-4d35-9604-ed4fcb6c3f02 http.request.method=GET http.request.remoteaddr="[fc00:f853:ccd:e793::4]:58300" http.request.uri="/v2/bitnami/redis-exporter/blobs/sha256:d96b55c642425770191f25138b7271a6c32ef038eae61d22f99107e011793d8d?ns=public.ecr.aws" http.request.useragent="containerd/v1.6.4" trace.duration=21.305µs trace.file="/go/src/github.com/docker/distribution/registry/storage/driver/base/base.go" trace.func="github.com/docker/distribution/registry/storage/driver/base.(*Base).GetContent" trace.id=888e9b6b-6a80-4306-a7c6-3ddb8c0b294c trace.line=95 vars.digest="sha256:d96b55c642425770191f25138b7271a6c32ef038eae61d22f99107e011793d8d" vars.name="bitnami/redis-exporter" 
time="2023-02-14T17:15:23.457286858Z" level=debug msg="Increasing token expiration to: 60 seconds" go.version=go1.16.15 http.request.host="proxy-ecr-public-gallery:5000" http.request.id=8ae57611-79d1-4d35-9604-ed4fcb6c3f02 http.request.method=GET http.request.remoteaddr="[fc00:f853:ccd:e793::4]:58300" http.request.uri="/v2/bitnami/redis-exporter/blobs/sha256:d96b55c642425770191f25138b7271a6c32ef038eae61d22f99107e011793d8d?ns=public.ecr.aws" http.request.useragent="containerd/v1.6.4" vars.digest="sha256:d96b55c642425770191f25138b7271a6c32ef038eae61d22f99107e011793d8d" vars.name="bitnami/redis-exporter" 
fc00:f853:ccd:e793::4 - - [14/Feb/2023:17:15:23 +0000] "GET /v2/bitnami/redis-exporter/blobs/sha256:d96b55c642425770191f25138b7271a6c32ef038eae61d22f99107e011793d8d?ns=public.ecr.aws HTTP/1.1" 500 139 "" "containerd/v1.6.4"
time="2023-02-14T17:15:23.598986423Z" level=error msg="response completed with error" err.code=unknown err.detail="unauthorized: authentication required" err.message="unknown error" go.version=go1.16.15 http.request.host="proxy-ecr-public-gallery:5000" http.request.id=8ae57611-79d1-4d35-9604-ed4fcb6c3f02 http.request.method=GET http.request.remoteaddr="[fc00:f853:ccd:e793::4]:58300" http.request.uri="/v2/bitnami/redis-exporter/blobs/sha256:d96b55c642425770191f25138b7271a6c32ef038eae61d22f99107e011793d8d?ns=public.ecr.aws" http.request.useragent="containerd/v1.6.4" http.response.contenttype="application/json; charset=utf-8" http.response.duration=301.370534ms http.response.status=500 http.response.written=139 vars.digest="sha256:d96b55c642425770191f25138b7271a6c32ef038eae61d22f99107e011793d8d" vars.name="bitnami/redis-exporter" 
time="2023-02-14T17:15:25.454344758Z" level=debug msg="filesystem.PutContent("/scheduler-state.json")" go.version=go1.16.15 instance.id=7de5a7f0-0b15-4de1-a3cb-57ce6645325e service=registry trace.duration=3.546053ms trace.file="/go/src/github.com/docker/distribution/registry/storage/driver/base/base.go" trace.func="github.com/docker/distribution/registry/storage/driver/base.(*Base).PutContent" trace.id=e96d6b54-16e7-4545-b175-d67f281f03e2 trace.line=110 version="v2.8.1+unknown" 
time="2023-02-14T17:15:26.619520947Z" level=debug msg="authorizing request" go.version=go1.16.15 http.request.host="proxy-ecr-public-gallery:5000" http.request.id=17ea445e-65c3-4f1f-af7f-fdf53635f4db http.request.method=GET http.request.remoteaddr="[fc00:f853:ccd:e793::4]:58300" http.request.uri="/v2/bitnami/redis-exporter/blobs/sha256:be3bd484fe8f91088a114cdd7a137d0ff9ca1ada800bece5a3306ff592b7ba24?ns=public.ecr.aws" http.request.useragent="containerd/v1.6.4" vars.digest="sha256:be3bd484fe8f91088a114cdd7a137d0ff9ca1ada800bece5a3306ff592b7ba24" vars.name="bitnami/redis-exporter" 
time="2023-02-14T17:15:26.620485597Z" level=debug msg=GetBlob go.version=go1.16.15 http.request.host="proxy-ecr-public-gallery:5000" http.request.id=17ea445e-65c3-4f1f-af7f-fdf53635f4db http.request.method=GET http.request.remoteaddr="[fc00:f853:ccd:e793::4]:58300" http.request.uri="/v2/bitnami/redis-exporter/blobs/sha256:be3bd484fe8f91088a114cdd7a137d0ff9ca1ada800bece5a3306ff592b7ba24?ns=public.ecr.aws" http.request.useragent="containerd/v1.6.4" vars.digest="sha256:be3bd484fe8f91088a114cdd7a137d0ff9ca1ada800bece5a3306ff592b7ba24" vars.name="bitnami/redis-exporter" 
time="2023-02-14T17:15:26.620547278Z" level=debug msg="filesystem.GetContent("/docker/registry/v2/repositories/bitnami/redis-exporter/_layers/sha256/be3bd484fe8f91088a114cdd7a137d0ff9ca1ada800bece5a3306ff592b7ba24/link")" go.version=go1.16.15 http.request.host="proxy-ecr-public-gallery:5000" http.request.id=17ea445e-65c3-4f1f-af7f-fdf53635f4db http.request.method=GET http.request.remoteaddr="[fc00:f853:ccd:e793::4]:58300" http.request.uri="/v2/bitnami/redis-exporter/blobs/sha256:be3bd484fe8f91088a114cdd7a137d0ff9ca1ada800bece5a3306ff592b7ba24?ns=public.ecr.aws" http.request.useragent="containerd/v1.6.4" trace.duration=22.804µs trace.file="/go/src/github.com/docker/distribution/registry/storage/driver/base/base.go" trace.func="github.com/docker/distribution/registry/storage/driver/base.(*Base).GetContent" trace.id=6a020e5d-9e5d-4cdf-86d4-3454a0a5a9bc trace.line=95 vars.digest="sha256:be3bd484fe8f91088a114cdd7a137d0ff9ca1ada800bece5a3306ff592b7ba24" vars.name="bitnami/redis-exporter" 
time="2023-02-14T17:15:26.792952186Z" level=debug msg="Increasing token expiration to: 60 seconds" go.version=go1.16.15 http.request.host="proxy-ecr-public-gallery:5000" http.request.id=17ea445e-65c3-4f1f-af7f-fdf53635f4db http.request.method=GET http.request.remoteaddr="[fc00:f853:ccd:e793::4]:58300" http.request.uri="/v2/bitnami/redis-exporter/blobs/sha256:be3bd484fe8f91088a114cdd7a137d0ff9ca1ada800bece5a3306ff592b7ba24?ns=public.ecr.aws" http.request.useragent="containerd/v1.6.4" vars.digest="sha256:be3bd484fe8f91088a114cdd7a137d0ff9ca1ada800bece5a3306ff592b7ba24" vars.name="bitnami/redis-exporter" 
time="2023-02-14T17:15:26.994329004Z" level=error msg="response completed with error" err.code=unknown err.detail="unauthorized: authentication required" err.message="unknown error" go.version=go1.16.15 http.request.host="proxy-ecr-public-gallery:5000" http.request.id=17ea445e-65c3-4f1f-af7f-fdf53635f4db http.request.method=GET http.request.remoteaddr="[fc00:f853:ccd:e793::4]:58300" http.request.uri="/v2/bitnami/redis-exporter/blobs/sha256:be3bd484fe8f91088a114cdd7a137d0ff9ca1ada800bece5a3306ff592b7ba24?ns=public.ecr.aws" http.request.useragent="containerd/v1.6.4" http.response.contenttype="application/json; charset=utf-8" http.response.duration=375.339967ms http.response.status=500 http.response.written=139 vars.digest="sha256:be3bd484fe8f91088a114cdd7a137d0ff9ca1ada800bece5a3306ff592b7ba24" vars.name="bitnami/redis-exporter" 
fc00:f853:ccd:e793::4 - - [14/Feb/2023:17:15:26 +0000] "GET /v2/bitnami/redis-exporter/blobs/sha256:be3bd484fe8f91088a114cdd7a137d0ff9ca1ada800bece5a3306ff592b7ba24?ns=public.ecr.aws HTTP/1.1" 500 139 "" "containerd/v1.6.4"
time="2023-02-14T17:15:30.918275401Z" level=debug msg="filesystem.Stat("/")" go.version=go1.16.15 instance.id=7de5a7f0-0b15-4de1-a3cb-57ce6645325e service=registry trace.duration=32.721µs trace.file="/go/src/github.com/docker/distribution/registry/storage/driver/base/base.go" trace.func="github.com/docker/distribution/registry/storage/driver/base.(*Base).Stat" trace.id=036ff64e-fafb-4e33-a427-c927dd4cb1be trace.line=155 version="v2.8.1+unknown"

We can show some informations likes :

  • http.response.status=500
  • level=error msg="response completed with error" err.code=unknown err.detail="unauthorized: authentication required"
  • msg="Increasing token expiration to: 60 seconds"

Using curl

token=$(curl -s "https://public.ecr.aws/token/?service=public.ecr.aws&scope=aws" | jq -r .token)
digest=$(curl -s "https://public.ecr.aws/v2/bitnami/redis-exporter/manifests/1.26.0-debian-10-r2" -H "Authorization: Bearer $token" | jq -r ".config.digest")
curl -L -s "https://public.ecr.aws/v2/bitnami/redis-exporter/blobs/$digest" -H "Authorization: Bearer $token"

Output:

{"architecture":"amd64","config":{"Hostname":"","Domainname":"","User":"1001","AttachStdin":false,"AttachStdout":false,"AttachStderr":false,"ExposedPorts":{"9121/tcp":{}},"Tty":false,"OpenStdin":false,"StdinOnce":false,"Env":["PATH=/opt/bitnami/redis-exporter/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin","HOME=/","OS_ARCH=amd64","OS_FLAVOUR=debian-10","OS_NAME=linux","BITNAMI_APP_NAME=redis-exporter","BITNAMI_IMAGE_VERSION=1.26.0-debian-10-r2"],"Cmd":null,"Image":"sha256:2b27e4c6c7d0614e96df586bd507ab1ca9f0970463753b4ef46bb8ae35c5e916","Volumes":null,"WorkingDir":"/opt/bitnami/redis-exporter","Entrypoint":["redis_exporter"],"OnBuild":null,"Labels":{"maintainer":"Bitnami \[email protected]\u003e"}},"container":"34c0a9fbedefbc2b9a080b24bc68751a8ac21b509b698d4103c41f36dfe65e8a","container_config":{"Hostname":"34c0a9fbedef","Domainname":"","User":"1001","AttachStdin":false,"AttachStdout":false,"AttachStderr":false,"ExposedPorts":{"9121/tcp":{}},"Tty":false,"OpenStdin":false,"StdinOnce":false,"Env":["PATH=/opt/bitnami/redis-exporter/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin","HOME=/","OS_ARCH=amd64","OS_FLAVOUR=debian-10","OS_NAME=linux","BITNAMI_APP_NAME=redis-exporter","BITNAMI_IMAGE_VERSION=1.26.0-debian-10-r2"],"Cmd":["/bin/sh","-c","#(nop) ","ENTRYPOINT [\"redis_exporter\"]"],"Image":"sha256:2b27e4c6c7d0614e96df586bd507ab1ca9f0970463753b4ef46bb8ae35c5e916","Volumes":null,"WorkingDir":"/opt/bitnami/redis-exporter","Entrypoint":["redis_exporter"],"OnBuild":null,"Labels":{"maintainer":"Bitnami \[email protected]\u003e"}},"created":"2021-08-23T15:48:57.164193905Z","docker_version":"19.03.15","history":[{"created":"2021-07-31T00:04:56.925753805Z","comment":"from Bitnami with love"},{"created":"2021-08-23T14:07:39.588342982Z","created_by":"/bin/sh -c #(nop)  LABEL maintainer=Bitnami \[email protected]\u003e","empty_layer":true},{"created":"2021-08-23T15:48:47.210217984Z","created_by":"/bin/sh -c #(nop)  ENV HOME=/ OS_ARCH=amd64 OS_FLAVOUR=debian-10 OS_NAME=linux","empty_layer":true},{"created":"2021-08-23T15:48:47.439163181Z","created_by":"/bin/sh -c #(nop) COPY dir:22b0d04773ee83430cf5835225ac24d8884db6eca21df41870f41982d26521b1 in / "},{"created":"2021-08-23T15:48:54.216560326Z","created_by":"/bin/sh -c install_packages ca-certificates curl gzip procps tar wget"},{"created":"2021-08-23T15:48:55.404214919Z","created_by":"/bin/sh -c wget -nc -P /tmp/bitnami/pkg/cache/ https://downloads.bitnami.com/files/stacksmith/redis-exporter-1.26.0-0-linux-amd64-debian-10.tar.gz \u0026\u0026     echo \"b533472638c4771f6f0f12aa36e1bfe5a2d96ba2b67bd2b7da52dee0d0e87903  /tmp/bitnami/pkg/cache/redis-exporter-1.26.0-0-linux-amd64-debian-10.tar.gz\" | sha256sum -c - \u0026\u0026     tar -zxf /tmp/bitnami/pkg/cache/redis-exporter-1.26.0-0-linux-amd64-debian-10.tar.gz -P --transform 's|^[^/]*/files|/opt/bitnami|' --wildcards '*/files' \u0026\u0026     rm -rf /tmp/bitnami/pkg/cache/redis-exporter-1.26.0-0-linux-amd64-debian-10.tar.gz"},{"created":"2021-08-23T15:48:56.200146647Z","created_by":"/bin/sh -c chmod g+rwX /opt/bitnami"},{"created":"2021-08-23T15:48:56.399613427Z","created_by":"/bin/sh -c #(nop)  ENV BITNAMI_APP_NAME=redis-exporter BITNAMI_IMAGE_VERSION=1.26.0-debian-10-r2 PATH=/opt/bitnami/redis-exporter/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin","empty_layer":true},{"created":"2021-08-23T15:48:56.586689747Z","created_by":"/bin/sh -c #(nop)  EXPOSE 9121","empty_layer":true},{"created":"2021-08-23T15:48:56.790663897Z","created_by":"/bin/sh -c #(nop) WORKDIR /opt/bitnami/redis-exporter","empty_layer":true},{"created":"2021-08-23T15:48:56.974911995Z","created_by":"/bin/sh -c #(nop)  USER 1001","empty_layer":true},{"created":"2021-08-23T15:48:57.164193905Z","created_by":"/bin/sh -c #(nop)  ENTRYPOINT [\"redis_exporter\"]","empty_layer":true}],"os":"linux","rootfs":{"type":"layers","diff_ids":["sha256:209a01d061655f5c26e85f1aeeee7e805edf3601194754c8125c3a6c04dfac9b","sha256:e7600f26896f36610605e0a1bd5f452bc641e496fb97e741595a6b350c8b7327","sha256:5079cd9477b3cbb263982a3b2e222ddf4b01a77a48dd7d8a94d34d29c1324a60","sha256:93dc5b18414306d1eda83fe9b2e92ffaf871f6b0d7b2d184e8f1487400ff4c1b","sha256:e66f3988dc0aeebb2cf26d29a3eb60eff85fe94d3f60d2c6c0fee3a20c0a7b03"]}}

No problem here ..

Activity

  1. MalibuKoKo commented on Mar 1, 2023

    @MalibuKoKo
    Author

    Other methods for reproduce these issue without using kind binary:

    Method 1 (2 containers : kind + registry) :

    Kazam_screencast_00030

    1. Generate config.toml used by containerd with registry.mirrors public.ecr.aws and docker-compose.yaml files (see below)
    2. Create and start containers docker-compose up
    3. Pull image docker exec -it kind crictl pull public.ecr.aws/eks-distro/kubernetes/pause:3.9
    4. Stop and delete containers ctrl+c and docker-compose rm
    cat > config.toml << EOF
    version = 2
    
    [plugins]
      [plugins."io.containerd.grpc.v1.cri"]
        restrict_oom_score_adj = false
        sandbox_image = "registry.k8s.io/pause:3.7"
        tolerate_missing_hugepages_controller = true
        [plugins."io.containerd.grpc.v1.cri".containerd]
          default_runtime_name = "runc"
          discard_unpacked_layers = true
          snapshotter = "overlayfs"
          [plugins."io.containerd.grpc.v1.cri".containerd.runtimes]
            [plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc]
              base_runtime_spec = "/etc/containerd/cri-base.json"
              runtime_type = "io.containerd.runc.v2"
              [plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc.options]
                SystemdCgroup = true
            [plugins."io.containerd.grpc.v1.cri".containerd.runtimes.test-handler]
              base_runtime_spec = "/etc/containerd/cri-base.json"
              runtime_type = "io.containerd.runc.v2"
              [plugins."io.containerd.grpc.v1.cri".containerd.runtimes.test-handler.options]
                SystemdCgroup = true
        [plugins."io.containerd.grpc.v1.cri".registry]
          [plugins."io.containerd.grpc.v1.cri".registry.mirrors]
            [plugins."io.containerd.grpc.v1.cri".registry.mirrors."public.ecr.aws"]
              endpoint = ["http://proxy_public.ecr.aws:5000"]
    [proxy_plugins]
      [proxy_plugins.fuse-overlayfs]
        address = "/run/containerd-fuse-overlayfs.sock"
        type = "snapshot"
    EOF
    cat > docker-compose.yaml << EOF
    version: "3.9"
    
    services:
      proxy_public.ecr.aws:
        image: registry:2
        restart: always
        container_name: proxy_public.ecr.aws
        environment:
          REGISTRY_PROXY_REMOTEURL: https://public.ecr.aws
        volumes:
          - proxy_public.ecr.aws:/var/lib/registry
        ports:
          - 127.0.0.1:5000:5000
      kind:
        image: kindest/node:v1.25.3
        restart: on-failure
        container_name: kind
        privileged: true
        depends_on:
          - proxy_public.ecr.aws
        configs:
          - source: _etc_containerd_config.toml
            target: /etc/containerd/config.toml
            uid: '0'
            gid: '0'
            mode: 0644
    volumes:
      proxy_public.ecr.aws:
    configs:
      _etc_containerd_config.toml:
        file: ./config.toml
    EOF
    

    We can extract HTTP requests from logs (see below):

    http.request.method=HEAD http.request.uri="/v2/eks-distro/kubernetes/pause/manifests/3.9?ns=public.ecr.aws" http.request.useragent="containerd/v1.6.9" http.response.contenttype="application/vnd.oci.image.index.v1+json"
    http.request.method=GET http.request.uri="/v2/eks-distro/kubernetes/pause/manifests/sha256:ad51d71b841c024e840aa250b0df4bc0d66e431b49dfeb26ef40e6b98befa893?ns=public.ecr.aws" http.request.useragent="containerd/v1.6.9" http.response.contenttype="application/vnd.oci.image.index.v1+json"
    http.request.method=GET http.request.uri="/v2/eks-distro/kubernetes/pause/manifests/sha256:de80d55fe35cbd80332111f5405f2e764929dd94a6c2b48ec12e17b1b6985619?ns=public.ecr.aws" http.request.useragent="containerd/v1.6.9" http.response.contenttype="application/vnd.oci.image.manifest.v1+json"
    http.request.method=GET http.request.uri="/v2/eks-distro/kubernetes/pause/blobs/sha256:369ca9b38fdd7d2992a39b5dbaf8f8076259be9af7ba6e6a0ff2605cdc523fe0?ns=public.ecr.aws" http.request.useragent="containerd/v1.6.9" http.response.contenttype="application/json; charset=utf-8"
    

    logs:

    [+] Running 2/0
     ⠿ Container proxy_public.ecr.aws  Created                                                                                                                                                               0.0s
     ⠿ Container kind                  Created                                                                                                                                                               0.0s
    Attaching to kind, proxy_public.ecr.aws
    proxy_public.ecr.aws  | time="2023-03-01T01:45:25.888134687Z" level=warning msg="No HTTP secret provided - generated random secret. This may cause problems with uploads if multiple registries are behind a load-balancer. To provide a shared secret, fill in http.secret in the configuration file or set the REGISTRY_HTTP_SECRET environment variable." go.version=go1.16.15 instance.id=8137d322-cea1-4525-998d-09054db2ac8f service=registry version="v2.8.1+unknown" 
    proxy_public.ecr.aws  | time="2023-03-01T01:45:25.89168698Z" level=info msg="redis not configured" go.version=go1.16.15 instance.id=8137d322-cea1-4525-998d-09054db2ac8f service=registry version="v2.8.1+unknown" 
    proxy_public.ecr.aws  | time="2023-03-01T01:45:25.907192681Z" level=info msg="using inmemory blob descriptor cache" go.version=go1.16.15 instance.id=8137d322-cea1-4525-998d-09054db2ac8f service=registry version="v2.8.1+unknown" 
    proxy_public.ecr.aws  | time="2023-03-01T01:45:25.907416099Z" level=info msg="Starting cached object TTL expiration scheduler..." go.version=go1.16.15 instance.id=8137d322-cea1-4525-998d-09054db2ac8f service=registry version="v2.8.1+unknown" 
    kind                  | INFO: ensuring we can execute mount/umount even with userns-remap
    kind                  | INFO: making mounts shared
    kind                  | INFO: clearing and regenerating /etc/machine-id
    kind                  | INFO: remounting /sys read-only
    kind                  | INFO: detected cgroup v2
    kind                  | Initializing machine ID from random generator.
    kind                  | INFO: faking /sys/class/dmi/id/product_name to be "kind"
    kind                  | INFO: faking /sys/class/dmi/id/product_uuid to be random
    kind                  | INFO: faking /sys/devices/virtual/dmi/id/product_uuid as well
    kind                  | INFO: setting iptables to detected mode: nft
    kind                  | INFO: Detected IPv4 address: 172.28.0.3
    kind                  | INFO: Detected IPv6 address: 
    proxy_public.ecr.aws  | time="2023-03-01T01:45:26.437519453Z" level=info msg="Discovered token authentication URL: https://public.ecr.aws/token/" go.version=go1.16.15 instance.id=8137d322-cea1-4525-998d-09054db2ac8f 
    proxy_public.ecr.aws  | time="2023-03-01T01:45:26.437557065Z" level=info msg="Registry configured as a proxy cache to https://public.ecr.aws" go.version=go1.16.15 instance.id=8137d322-cea1-4525-998d-09054db2ac8f service=registry version="v2.8.1+unknown" 
    proxy_public.ecr.aws  | time="2023-03-01T01:45:26.437572072Z" level=warning msg="Registry does not implement RempositoryRemover. Will not be able to delete repos and tags" go.version=go1.16.15 instance.id=8137d322-cea1-4525-998d-09054db2ac8f service=registry version="v2.8.1+unknown" 
    proxy_public.ecr.aws  | time="2023-03-01T01:45:26.437769089Z" level=info msg="listening on [::]:5000" go.version=go1.16.15 instance.id=8137d322-cea1-4525-998d-09054db2ac8f service=registry version="v2.8.1+unknown" 
    proxy_public.ecr.aws  | time="2023-03-01T01:45:31.93333416Z" level=info msg="Challenge established with upstream : {https   public.ecr.aws /v2/  %!s(bool=false)   } &{{{%!s(int32=0) %!s(uint32=0)} %!s(uint32=0) %!s(uint32=0) %!s(int32=0) %!s(int32=0)} map[https://public.ecr.aws:443/v2/:[{bearer map[realm:https://public.ecr.aws/token/ scope:aws service:public.ecr.aws]}]]}" go.version=go1.16.15 http.request.host="proxy_public.ecr.aws:5000" http.request.id=fa65e25c-3299-4ca0-b72e-9a78da3afb58 http.request.method=HEAD http.request.remoteaddr="172.28.0.3:37590" http.request.uri="/v2/eks-distro/kubernetes/pause/manifests/3.9?ns=public.ecr.aws" http.request.useragent="containerd/v1.6.9" vars.name="eks-distro/kubernetes/pause" vars.reference=3.9 
    proxy_public.ecr.aws  | time="2023-03-01T01:45:32.320654295Z" level=info msg="response completed" go.version=go1.16.15 http.request.host="proxy_public.ecr.aws:5000" http.request.id=fa65e25c-3299-4ca0-b72e-9a78da3afb58 http.request.method=HEAD http.request.remoteaddr="172.28.0.3:37590" http.request.uri="/v2/eks-distro/kubernetes/pause/manifests/3.9?ns=public.ecr.aws" http.request.useragent="containerd/v1.6.9" http.response.contenttype="application/vnd.oci.image.index.v1+json" http.response.duration=502.716172ms http.response.status=200 http.response.written=703 
    proxy_public.ecr.aws  | 172.28.0.3 - - [01/Mar/2023:01:45:31 +0000] "HEAD /v2/eks-distro/kubernetes/pause/manifests/3.9?ns=public.ecr.aws HTTP/1.1" 200 703 "" "containerd/v1.6.9"
    proxy_public.ecr.aws  | time="2023-03-01T01:45:32.329533605Z" level=info msg="response completed" go.version=go1.16.15 http.request.host="proxy_public.ecr.aws:5000" http.request.id=386da76f-0e20-40e3-a6e5-69c83c077930 http.request.method=GET http.request.remoteaddr="172.28.0.3:37594" http.request.uri="/v2/eks-distro/kubernetes/pause/manifests/sha256:ad51d71b841c024e840aa250b0df4bc0d66e431b49dfeb26ef40e6b98befa893?ns=public.ecr.aws" http.request.useragent="containerd/v1.6.9" http.response.contenttype="application/vnd.oci.image.index.v1+json" http.response.duration=1.120355ms http.response.status=200 http.response.written=703 
    proxy_public.ecr.aws  | 172.28.0.3 - - [01/Mar/2023:01:45:32 +0000] "GET /v2/eks-distro/kubernetes/pause/manifests/sha256:ad51d71b841c024e840aa250b0df4bc0d66e431b49dfeb26ef40e6b98befa893?ns=public.ecr.aws HTTP/1.1" 200 703 "" "containerd/v1.6.9"
    proxy_public.ecr.aws  | time="2023-03-01T01:45:32.345047975Z" level=info msg="response completed" go.version=go1.16.15 http.request.host="proxy_public.ecr.aws:5000" http.request.id=1c506f7b-697e-47f2-8a24-686f5d5e7bb9 http.request.method=GET http.request.remoteaddr="172.28.0.3:37594" http.request.uri="/v2/eks-distro/kubernetes/pause/manifests/sha256:de80d55fe35cbd80332111f5405f2e764929dd94a6c2b48ec12e17b1b6985619?ns=public.ecr.aws" http.request.useragent="containerd/v1.6.9" http.response.contenttype="application/vnd.oci.image.manifest.v1+json" http.response.duration=1.734216ms http.response.status=200 http.response.written=710 
    proxy_public.ecr.aws  | 172.28.0.3 - - [01/Mar/2023:01:45:32 +0000] "GET /v2/eks-distro/kubernetes/pause/manifests/sha256:de80d55fe35cbd80332111f5405f2e764929dd94a6c2b48ec12e17b1b6985619?ns=public.ecr.aws HTTP/1.1" 200 710 "" "containerd/v1.6.9"
    proxy_public.ecr.aws  | 172.28.0.3 - - [01/Mar/2023:01:45:32 +0000] "GET /v2/eks-distro/kubernetes/pause/blobs/sha256:369ca9b38fdd7d2992a39b5dbaf8f8076259be9af7ba6e6a0ff2605cdc523fe0?ns=public.ecr.aws HTTP/1.1" 500 139 "" "containerd/v1.6.9"
    proxy_public.ecr.aws  | time="2023-03-01T01:45:32.721670933Z" level=error msg="response completed with error" err.code=unknown err.detail="unauthorized: authentication required" err.message="unknown error" go.version=go1.16.15 http.request.host="proxy_public.ecr.aws:5000" http.request.id=f543b5bc-f214-41e6-92cc-f5a84170f07f http.request.method=GET http.request.remoteaddr="172.28.0.3:37594" http.request.uri="/v2/eks-distro/kubernetes/pause/blobs/sha256:369ca9b38fdd7d2992a39b5dbaf8f8076259be9af7ba6e6a0ff2605cdc523fe0?ns=public.ecr.aws" http.request.useragent="containerd/v1.6.9" http.response.contenttype="application/json; charset=utf-8" http.response.duration=363.54287ms http.response.status=500 http.response.written=139 vars.digest="sha256:369ca9b38fdd7d2992a39b5dbaf8f8076259be9af7ba6e6a0ff2605cdc523fe0" vars.name="eks-distro/kubernetes/pause" 
    proxy_public.ecr.aws  | 172.28.0.3 - - [01/Mar/2023:01:45:34 +0000] "GET /v2/eks-distro/kubernetes/pause/blobs/sha256:d9defbb5c3bb7c2bedf7b3a73ac552b32070c4edc18b037332be86f962b235cf?ns=public.ecr.aws HTTP/1.1" 500 139 "" "containerd/v1.6.9"
    proxy_public.ecr.aws  | time="2023-03-01T01:45:34.730253678Z" level=error msg="response completed with error" err.code=unknown err.detail="unauthorized: authentication required" err.message="unknown error" go.version=go1.16.15 http.request.host="proxy_public.ecr.aws:5000" http.request.id=789a37cf-2921-44e6-9529-5ae18fc1ee3e http.request.method=GET http.request.remoteaddr="172.28.0.3:37594" http.request.uri="/v2/eks-distro/kubernetes/pause/blobs/sha256:d9defbb5c3bb7c2bedf7b3a73ac552b32070c4edc18b037332be86f962b235cf?ns=public.ecr.aws" http.request.useragent="containerd/v1.6.9" http.response.contenttype="application/json; charset=utf-8" http.response.duration=269.862127ms http.response.status=500 http.response.written=139 vars.digest="sha256:d9defbb5c3bb7c2bedf7b3a73ac552b32070c4edc18b037332be86f962b235cf" vars.name="eks-distro/kubernetes/pause" 
    proxy_public.ecr.aws  | time="2023-03-01T01:45:34.734613245Z" level=error msg="response completed with error" err.code=unknown err.detail="unauthorized: authentication required" err.message="unknown error" go.version=go1.16.15 http.request.host="proxy_public.ecr.aws:5000" http.request.id=dcc99237-08c4-4e8e-a447-90275d40395e http.request.method=GET http.request.remoteaddr="172.28.0.3:37604" http.request.uri="/v2/eks-distro/kubernetes/pause/blobs/sha256:e86c7ac688369e3635d70c6ea8e8c1c3406d53266245ce2fa234abc5fb1c8bab?ns=public.ecr.aws" http.request.useragent="containerd/v1.6.9" http.response.contenttype="application/json; charset=utf-8" http.response.duration=267.304331ms http.response.status=500 http.response.written=139 vars.digest="sha256:e86c7ac688369e3635d70c6ea8e8c1c3406d53266245ce2fa234abc5fb1c8bab" vars.name="eks-distro/kubernetes/pause" 
    proxy_public.ecr.aws  | 172.28.0.3 - - [01/Mar/2023:01:45:34 +0000] "GET /v2/eks-distro/kubernetes/pause/blobs/sha256:e86c7ac688369e3635d70c6ea8e8c1c3406d53266245ce2fa234abc5fb1c8bab?ns=public.ecr.aws HTTP/1.1" 500 139 "" "containerd/v1.6.9"
    ^CGracefully stopping... (press Ctrl+C again to force)
    Aborting on container exit...
    [+] Running 2/2
     ⠿ Container kind                  Stopped                                                                                                                                                               0.5s
     ⠿ Container proxy_public.ecr.aws  Stopped                                                                                                                                                               0.3s
    canceled
    ➜  3842 docker-compose rm
    ? Going to remove kind, proxy_public.ecr.aws Yes
    [+] Running 2/0
     ⠿ Container proxy_public.ecr.aws  Removed                                                                                                                                                               0.0s
     ⠿ Container kind                  Removed                                                                                                                                                               0.0s
    

    Method 2 (1 container : registry) :

    Kazam_screencast_00032

    Let try using registry :

    docker run -p 5000:5000 --restart=always -e REGISTRY_PROXY_REMOTEURL=https://public.ecr.aws registry:2
    curl --head --header "Host: public.ecr.aws" --header "Accept: application/vnd.oci.image.index.v1+json"    --url "http://localhost:5000/v2/eks-distro/kubernetes/pause/manifests/3.9?ns=public.ecr.aws"
    curl        --header "Host: public.ecr.aws" --header "Accept: application/vnd.oci.image.index.v1+json"    --url "http://localhost:5000/v2/eks-distro/kubernetes/pause/manifests/sha256:ad51d71b841c024e840aa250b0df4bc0d66e431b49dfeb26ef40e6b98befa893?ns=public.ecr.aws"
    curl        --header "Host: public.ecr.aws" --header "Accept: application/vnd.oci.image.manifest.v1+json" --url "http://localhost:5000/v2/eks-distro/kubernetes/pause/manifests/sha256:de80d55fe35cbd80332111f5405f2e764929dd94a6c2b48ec12e17b1b6985619?ns=public.ecr.aws"
    curl        --header "Host: public.ecr.aws" --header "Accept: application/json; charset=utf-8"            --url "http://localhost:5000/v2/eks-distro/kubernetes/pause/blobs/sha256:369ca9b38fdd7d2992a39b5dbaf8f8076259be9af7ba6e6a0ff2605cdc523fe0?ns=public.ecr.aws"
    

    Let try using curl :

    token=$(curl -s "https://public.ecr.aws/token/?service=public.ecr.aws&scope=aws" | jq -r .token)
    curl --head --location --header "Authorization: Bearer $token" --url "https://public.ecr.aws/v2/eks-distro/kubernetes/pause/manifests/3.9?ns=public.ecr.aws"
    curl        --location --header "Authorization: Bearer $token" --url "https://public.ecr.aws/v2/eks-distro/kubernetes/pause/manifests/sha256:ad51d71b841c024e840aa250b0df4bc0d66e431b49dfeb26ef40e6b98befa893?ns=public.ecr.aws"
    curl        --location --header "Authorization: Bearer $token" --url "https://public.ecr.aws/v2/eks-distro/kubernetes/pause/manifests/sha256:de80d55fe35cbd80332111f5405f2e764929dd94a6c2b48ec12e17b1b6985619?ns=public.ecr.aws"
    curl        --location --header "Authorization: Bearer $token" --url "https://public.ecr.aws/v2/eks-distro/kubernetes/pause/blobs/sha256:369ca9b38fdd7d2992a39b5dbaf8f8076259be9af7ba6e6a0ff2605cdc523fe0?ns=public.ecr.aws"
    
  2. DaspawnW commented on Mar 8, 2023

    @DaspawnW

    I run into the same issue; it seems that the proxy solution doesn't implement the hole oci registry spec.
    I checked it with crane in verbose mode, there you can see quite well how they handle the authn.

  3. erfanw commented on Jun 12, 2024

    @erfanw

    same issue here. Any solutions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions