harbor: docker.io proxy cache failing after V2.2 migration

docker pulling some images through the proxy cache does not persist them.

Expected behavior and actual behavior: Expected the images if they do not exist in proxy cache to be downloaded and persisted locally until deleted (by retain policy for example)

Steps to reproduce the problem: Setup docker.io proxy cache on harbor registry and pull through it: docker pull registry.foo.bar/docker.io/osixia/openldap:1.3.0

Versions: Installed with harbor-helm

dependencies:
- name: harbor
  version: 1.6.1
  repository: https://helm.goharbor.io

Additional context:

  • Behind OIDC setup
  • Can only log up to INFO, nothing else is shown related to this
2021-04-30T09:20:40Z [WARNING] [/server/middleware/repoproxy/proxy.go:139]: Artifact: docker.io/osixia/openldap:1.3.0, digest: is not found in proxy cache, fetch it from remote repo
2021-04-30T09:22:23Z [WARNING] [/server/middleware/repoproxy/proxy.go:139]: Artifact: docker.io/osixia/openldap:1.3.0, digest: is not found in proxy cache, fetch it from remote repo
2021-04-30T09:23:15Z [WARNING] [/server/middleware/repoproxy/proxy.go:139]: Artifact: docker.io/osixia/openldap:1.3.0, digest: is not found in proxy cache, fetch it from remote repo
2021-04-30T09:24:23Z [WARNING] [/server/middleware/repoproxy/proxy.go:139]: Artifact: docker.io/webhippie/redis:latest, digest: is not found in proxy cache, fetch it from remote repo
2021-04-30T09:27:51Z [WARNING] [/server/middleware/repoproxy/proxy.go:139]: Artifact: docker.io/webhippie/redis:latest, digest: is not found in proxy cache, fetch it from remote repo
2021-04-30T09:28:04Z [WARNING] [/server/middleware/repoproxy/proxy.go:139]: Artifact: docker.io/osixia/openldap:1.3.0, digest: is not found in proxy cache, fetch it from remote repo
2021-04-30T09:29:26Z [WARNING] [/server/middleware/repoproxy/proxy.go:139]: Artifact: docker.io/osixia/openldap:1.3.0, digest: is not found in proxy cache, fetch it from remote repo
2021-04-30T09:30:09Z [WARNING] [/server/middleware/repoproxy/proxy.go:139]: Artifact: docker.io/osixia/openldap:1.3.0, digest: is not found in proxy cache, fetch it from remote repo
2021-04-30T09:53:18Z [WARNING] [/server/middleware/repoproxy/proxy.go:139]: Artifact: docker.io/osixia/openldap:1.3.0, digest: is not found in proxy cache, fetch it from remote repo
2021-04-30T09:53:18Z [WARNING] [/server/middleware/repoproxy/proxy.go:139]: Artifact: docker.io/osixia/openldap:1.3.0, digest: is not found in proxy cache, fetch it from remote repo

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 15
  • Comments: 23 (3 by maintainers)

Most upvoted comments

This is still an issue.

Same issue on v2.5.0-98e1b82f

Summary of this issue: the image tag is not guaranteed to be cached in Harbor, because it depends on the docker client’s behavior, if the tag/digest information is cached local, the docker client just sends a pull by digest request to the server, Harbor could not cache this image by tag, but cache it with digest.