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

Docker login fails when not forcing authentication

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Done
    • Affects Version/s: 4.3.2, 4.4.2, 4.4.3
    • Fix Version/s: 4.7.0
    • Component/s: Docker
    • Labels:
      None
    • Environment:

      CentOS, Xubuntu

      Description

      It seems impossible to have both anonymous and non-anonymous access working together.

      Steps I have taken:
      1) Create Local Docker repository.
      2) Set up reverse proxy
      3) Deploy an image to the repository (as admin)
      4) Uncheck Force Authentication in repository settings
      5) Allow anonymous access in Security-General
      6) Make sure "anonymous" has read permission on registry

      Now docker pull works for anonymous, but docker login fails:
      Error response from daemon: no successful auth challenge for http://127.0.0.1:5011/v2/ - errors: []

      However, when I check the Force Authentication button, then login works ok, but anonymous docker pull stops working:
      a) 4.4.2:

      Pulling repository 127.0.0.1:5011/test-image
      Error: Status 400 trying to pull repository test-image: "{\n  \"errors\" : [ {\n    \"status\" : 400,\n    \"message\" : \"Unsupported docker v1 repository request for 'docker-local'\"\n  } ]\n}" 
      

      (no idea why the request suddenly switched to v1, but when I change the repository config to use v1, then this is what I get: )

      Pulling repository 127.0.0.1:5011/test-image
      Error: image test-image:latest not found
      

      a.a) 4.4.3: The same as 4.3.2

      b) 4.3.2

      Pulling repository 127.0.0.1:5011/test-image
      Error: image test-image:latest not found
      

        Attachments

          Issue Links

            Activity

                People

                Assignee:
                shayy Shay Yaakov (Inactive)
                Reporter:
                melka Martin Melka (Inactive)
                Votes:
                5 Vote for this issue
                Watchers:
                8 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: