for-win icon indicating copy to clipboard operation
for-win copied to clipboard

docker login fails in v4.11.0 for gitlab

Open flowcietytim opened this issue 4 years ago • 44 comments

  • [x] I have tried with the latest version of Docker Desktop
  • [x] I have tried disabling enabled experimental features
  • [ ] I have uploaded Diagnostics
  • Diagnostics ID:

Actual behavior

docker login registry.gitlab.com fails in docker Desktop 4.11.0 wit error message

Error response from daemon: "docker login" is unsupported when Registry Access Management is blocking access to Docker Hub.

Expected behavior

login succeeds and is confirmed

Information

This might be related to the "minor change" in 4.11.0: "Improved an error message from docker login if Registry Access Management is blocking the Docker engine’s access to Docker Hub."

The problem appeared after a clean install of Windows (10.0.19044 Build 19044) and Docker Desktop. After uninstalling v4.11.0 and installing 4.10.1, login succeeds without any other changes.

This is not a Docker Business installation, so I'd expect to have nothing to do with Registry Access Management.

Steps to reproduce the behavior

  1. Installs Docker 4.11.0 on Windows 10
  2. docker login registry.gitlab.com
  3. enter username and password/access token
  4. error occurs

flowcietytim avatar Jul 29 '22 11:07 flowcietytim

We are seeing the same issue. I noticed the release notes for 4.11.0 says:

Improved an error message from docker login if Registry Access Management is blocking the Docker engine’s access to Docker Hub.

Not sure if there is some bug in the implementation of this - because we definitely do not have this feature enabled in our org.

I can also confirm the issue goes away after downgrading to 4.10.1 as reported by flowcietytim

vijaytdh avatar Jul 29 '22 11:07 vijaytdh

I can confirm and add that this seems to happen

  • only with the Windows version,
  • only after the upgrade to v4.11,
  • both with or without previously stored credentials.

tkintscher avatar Jul 29 '22 12:07 tkintscher

Same issue here. Trying to login to Azure Registry but it fails with this error.

Error response from daemon: "docker login" is unsupported when Registry Access Management is blocking access to Docker Hub.
The CLI "docker login" will not work in this configuration.
**
** You must sign in via the Docker Desktop UI instead.
**

We definitely do not have this feature enabled in our Team.

Docker Desktop 4.11.0 (83626) Windows 10

benediktblank avatar Jul 29 '22 12:07 benediktblank

I have the same problem with Docker Desktop 4.11.0 and Windows 10

pcomble avatar Jul 29 '22 12:07 pcomble

Thanks for the report. It doesn't reproduce for me -- I can docker login registry.gitlab.com with Registry Access Management disabled. I suspect there is a bug when Registry Access Management is enabled, but I can't explain why it would activate if the feature isn't enabled in your org.

Could you

  • reproduce the failure and upload a diagnostic and quote the ID here?
  • tell me if you have C:\ProgramData\DockerDesktop\registry.json or C:\ProgramData\DockerDesktop\access.json files, and if so, what they contain?
  • tell me if you have access to Docker Hub, or if it is blocked by your firewall?

djs55 avatar Jul 29 '22 13:07 djs55

I currently can't reproduce the error since, as I wrote, I have downgraded to 4.10.1 for work. I will upgrade and produce/provide the diagnostic on monday, as long as nobody else has jumped in and provided diagnostics till then.

  • I want to mention that I am using wsl2 backend.
  • I have no registry.json or access.json file, neither in Windows (C:\ProgramData\Docker) nor wsl environment (~/.docker/)
  • I am no member of any docker organization and did not find any documentation on Registry Access Management in gitlab
  • I am not logged in to Docker Hub, but have verified no firewall is blocking access to it

I hope this already helps and will, as stated, add diagnostic ID on monday

flowcietytim avatar Jul 29 '22 13:07 flowcietytim

I have the same problem with Docker Desktop 4.11.0 and Windows 10, using a personal edition of docker desktop.

dano2004-doc avatar Jul 29 '22 17:07 dano2004-doc

I am seeing the same issue. Cannot login to ECR and while I have a paid docker hub account I am not an organization or business and cannot turn on/off Registry Access Management.

mmathias01 avatar Jul 29 '22 18:07 mmathias01

In case it helps I have uploaded a diagnostic: 1B717F2-C406-4A6A-91A9-22822AC7CDF9/20220729184049

For reference before I ran the diagnosting I:

  • Turned it off and back on again
  • Un-installed Docker Desktop
  • Turned it off and back on again
  • Cleaned up, moved, or removed all configuration files and folders both on the Windows 11 host, and the WSL2 VM
  • Reinstalled Docker Desktop from a fresh download
  • Crossed my fingers
  • Attempted to Login using Docker CLI on WSL2 vm by typing "docker login"

TL;DR. This diagnostic should be on a clean, fresh install of Docker Desktop 4.11.0 on Windows 11 with WSL2

Here are the results:

Authenticating with existing credentials...
Login did not succeed, error: Error response from daemon: "docker login" is unsupported when Registry Access Management is blocking access to Docker Hub.

The CLI "docker login" will not work in this configuration.

**
** You must sign in via the Docker Desktop UI instead.
**
Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one.
Username (ms*********):
Password:
Error response from daemon: "docker login" is unsupported when Registry Access Management is blocking access to Docker Hub.

The CLI "docker login" will not work in this configuration.

**
** You must sign in via the Docker Desktop UI instead.
**

mmathias01 avatar Jul 29 '22 18:07 mmathias01

I just come across this error on fresh new installation of W10 and Docker Desktop.

  • Windows 10 (build 19042.1706)
  • Docker Desktop 4.11.0 (83626)
  • WSL2 with Debian

Diagnostic ID: 5BBE4157-2463-4E59-9DB3-F38B1DC86E7A/20220730051743

docker login registry.gitlab.com
Username: [email protected]
Password: 
Error response from daemon: "docker login" is unsupported when Registry Access Management is blocking access to Docker Hub.

The CLI "docker login" will not work in this configuration.

**
** You must sign in via the Docker Desktop UI instead.
**

pavelmaca avatar Jul 30 '22 05:07 pavelmaca

Confirm bug +1

misaon avatar Jul 30 '22 16:07 misaon

I am also having the same issue here on Windows10 with Docker Desktop version 4.11.0

Error message:

Error response from daemon: "docker login" is unsupported when Registry Access Management is blocking access to Docker Hub.

The CLI "docker login" will not work in this configuration.

** ** You must sign in via the Docker Desktop UI instead. **

sanctitygeorge avatar Jul 30 '22 22:07 sanctitygeorge

Have same bug

Pawior avatar Jul 31 '22 17:07 Pawior

Confirm.

eoan-ermine avatar Jul 31 '22 18:07 eoan-ermine

Having same bug here

wood-dev avatar Aug 01 '22 01:08 wood-dev

Have same bug.

shaileshs-waters avatar Aug 01 '22 07:08 shaileshs-waters

Same bug occurs on my computer:

  • Windows 10,
  • Docker 4.11.0,
  • WSL 2 with Ubuntu 20.04.4 LTS,
  • Docker personal plan,
  • Used command az acr login --name {REDACTED}
Error response from daemon: "docker login" is unsupported when Registry Access Management is blocking access to Docker Hub.
The CLI "docker login" will not work in this configuration.
**
** You must sign in via the Docker Desktop UI instead.
**
Login failed.

goran-blazevic-valcon avatar Aug 01 '22 08:08 goran-blazevic-valcon

Confirmed this is also happening trying to login to ECR with aws ecr get-login-password --region ap-southeast-2 | docker login --username AWS --password-stdin $ECR_ENDPOINT

I was able to fix one machine by logging in using the Docker desktop software but you can only login to one account at once, which is not useful when you use ECR, Dockerhub and Digital Ocean docker repos across multiple projects

Our deployment scripts are broken due to this error

cheynewallace avatar Aug 01 '22 09:08 cheynewallace

+1

jruhe-adesso avatar Aug 01 '22 11:08 jruhe-adesso

It also happens to me. I had to re-install Docker Desktop recently and it now presents me the same error.

isc-gsaito avatar Aug 01 '22 12:08 isc-gsaito