Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-23546

Support anonymous pulling Docker images from GitHub Container Registry

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Cannot Reproduce
    • Affects Version/s: 7.16.3
    • Fix Version/s: None
    • Component/s: None
    • Severity:
      Medium

      Description

      Currently, Artifactory can't pull from ghcr.io, while Docker client works without special configuration. (without Remote Credentials => anonymous)

      Steps to pull successfully without Artifactory:

      1. Run this:
      docker pull ghcr.io/banzaicloud/supertubes:v1.1.0-dev.1 

       

      Steps to reproduce the error in Artifactory:

      1. Configure a remote repository pointing to https://ghcr.io
      2. docker login to this remote repo
      3. pull the same image:
      docker pull 192.168.81.20:8081/docker-remote/banzaicloud/supertubes:v1.1.0-dev.1 

      The error is: (client output)

      Error response from daemon: manifest for 192.168.86.29:8081/docker-remote/banzaicloud/supertubes:v1.1.0-dev.1 not found: manifest unknown: The named manifest is not known to the registry. 

      artifactory.log:

      2020-10-08 17:55:05,469 [http-nio-8081-exec-10] [WARN ] (o.a.r.RemoteRepoBase:466) - docker-remote: Error in getting information for 'banzaicloud/supertubes/v1.1.0-dev.1/list.manifest.json' (java.lang.IllegalStateException: Can't fetch token for repo: docker-remote realm: https://ghcr.io/token scope:repository:user/image:pull).
      2020-10-08 17:55:05,470 [http-nio-8081-exec-10] [TRACE] (o.a.a.d.r.v.DockerV2RemoteRepoHandler:447) - Missing Manifest from docker-remote 'v2/banzaicloud/supertubes/manifests/v1.1.0-dev.1' not found at docker-remote:banzaicloud/supertubes/v1.1.0-dev.1/list.manifest.json 

       

      Workaround:

      Use Remote credentials, i.e. username and PAT (Personal Access Token) in github.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            avivb Aviv Blonder
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Sync Status

                Connection: RTFACT Sync
                RTMID-23546 -
                SYNCHRONIZED
                • Last Sync Date: