Uploaded image for project: 'Project Quay'
  1. Project Quay
  2. PROJQUAY-6648

Application token Docker/Podman login command fails on windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Undefined
    • quay-v3.11.0
    • quay-v3.10.2
    • quay-ui
    • False
    • None
    • False
    • Compatibility/Configuration, User Experience
      1. create in the user profile a application token
      2. click on the created application token
      3. klick on "Docker Login"
      4. paste the command in a Windows Terminal oder PowerShell
    • 0

    Description

      When you create in your user profile a application token, you can then click on the created token and get a " Credentials for ..." window, where multiple login commands and configurations are presented (see attachment).

      For the Docker Login (and Podman Login), if the value for the usernamen (-u) contains a $, this $ is escaped with \$, and the value ist enclosed in double quotes.

      While this works for Linux (testet in Bash shell), this doesn't work for Windows.
      Pasting the command in a Windows Terminal or PowerShell results in the following error message:

      "Error response from daemon: Get "https://xxxx": unauthorized: Client login with unencrypted passwords is disabled. Please generate an encrypted password in the user admin panel for use here." 

      While sadly the error message from the docker cli here is wrong, replacing

      -u="\$app" 

      with

      -u='$app' 

      makes the command work on Windows.
      The modified command also still works on Linux (tested in Bash shell).

      Attachments

        Activity

          People

            Unassigned Unassigned
            chr.loos Christian Loos
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: