docker login fails in v4.11.0 for gitlab
- [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
- Installs Docker 4.11.0 on Windows 10
docker login registry.gitlab.com- enter username and password/access token
- error occurs
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
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.
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
I have the same problem with Docker Desktop 4.11.0 and Windows 10
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.jsonorC:\ProgramData\DockerDesktop\access.jsonfiles, and if so, what they contain? - tell me if you have access to Docker Hub, or if it is blocked by your firewall?
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.jsonoraccess.jsonfile, 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
I have the same problem with Docker Desktop 4.11.0 and Windows 10, using a personal edition of docker desktop.
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.
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.
**
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.
**
Confirm bug +1
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. **
Have same bug
Confirm.
Having same bug here
Have same bug.
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.
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
+1
It also happens to me. I had to re-install Docker Desktop recently and it now presents me the same error.