Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-23595

A docker proxy repository to docker.pkg.github.com does not work in Nexus Repo

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 3.22.1
    • Fix Version/s: None
    • Component/s: Docker
    • Labels:
      None
    • Story Points:
      5
    • Sprint:
      NXRM MadMax Sprint 20
    • Notability:
      3

      Description

      If you create a docker proxy repository to https://docker.pkg.github.com/ and attempt to pull images through it this will fail with the following error:

      2020-04-20 05:02:41,187+0000 ERROR [qtp1233346111-7509] node-nxrm-ha1.standalone.localdomain admin org.sonatype.nexus.repository.docker.internal.DockerProxyFacetImpl - Could not fetch the tag latest by its digest sha256:db74e6a65b4a6f469d5c486171bbeb86f773ed020036ff2d433d2bf950e158f0
      org.sonatype.nexus.repository.docker.internal.V2Exception: Docker image reference hello-world:sha256:db74e6a65b4a6f469d5c486171bbeb86f773ed020036ff2d433d2bf950e158f0 not found under repo "helloworld"
      at org.sonatype.nexus.repository.docker.internal.DockerProxyFacetImpl.execute(DockerProxyFacetImpl.java:461)
      at org.sonatype.nexus.repository.proxy.ProxyFacetSupport.fetch(ProxyFacetSupport.java:432)
      at org.sonatype.nexus.repository.docker.internal.DockerProxyFacetImpl.fetchTagDigestByContentDigest(DockerProxyFacetImpl.java:1200)
      at org.sonatype.nexus.repository.docker.internal.DockerProxyFacetImpl.putManifestByTag(DockerProxyFacetImpl.java:981)
      at org.sonatype.nexus.repository.docker.internal.DockerProxyFacetImpl.putManifest(DockerProxyFacetImpl.java:967)
      at org.sonatype.nexus.repository.docker.internal.DockerProxyFacetImpl.storeByAssetKind(DockerProxyFacetImpl.java:361)
      at org.sonatype.nexus.repository.docker.internal.DockerProxyFacetImpl.store(DockerProxyFacetImpl.java:330)
      at org.sonatype.nexus.repository.proxy.ProxyFacetSupport.doGet(ProxyFacetSupport.java:271)

      The reason for this is that the github docker implementation does not support pull by digest:

      https://github.community/t5/GitHub-API-Development-and/Cannot-pull-docker-image-from-Github-Package-Registry-by-digest/td-p/33018

       

        Attachments

          Activity

            People

            Assignee:
            mlukaretkyi Maksym Lukaretkyi
            Reporter:
            rseddon Rich Seddon
            Last Updated By:
            Peter Lynch Peter Lynch
            Team:
            NXRM - Mad Max
            Votes:
            3 Vote for this issue
            Watchers:
            12 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title