Error Message
“Access denied” when entering 2FA code in Docker Desktop for MacOS.
Error Details
When logging into Docker Desktop for MacOS, it accepts my username and password, then shows the “Two-Factor Authentication” window with one field for “Authentication Code,” when I enter the 2FA code from my authentication app, it responds with a red “Access denied.”
Additional Details
I am able to log in the Docker Hub website using the same credentials and the 2FA key generated by my authentication app.
System Details
Docker Desktop for MacOS: Version 3.5.2 (3.5.2.18)
Operating System: MacOS Catalina (10.15.7)
Any help or advice anyone could provide would be greatly appreciated.
Same here on Windows 10 19043 (21H1). The CLI login command docker login also fails with Error saving credentials: error storing credentials - err: exit status 1, out: . Logging into the web interface with 2FA works without problems.
Same here: 2FA on Docker Hub works fine, getting ‘access denied’ when entering via Desktop app.
Running on Windows 10 Enterprise 21H1 (Build 19043.1165) with Windows Feature Experience Pack 120.2212.3530.0 + Docker Desktop
Docker version 20.10.7, build f0df350 on Powershell
I was able to fix it after realising I need to use Personal Access Token for GUI program on Windows as well instead of 2FA code. You can create it here (Docker Hub).
I had the same issue and i tried your solution but it still doesn’t work… The Personal Access Token shows error “Incorrect authentication credentials”.
Please someone should help us out, its really urgent.
This works but I’m on a free account and I can only create 1 token. I use multiple devices and I need to login on all of them. Docker needs to fix this login issue asap