0

Windows 11

hub.docker.com

I setup Two-Factor Authentication and generated Personal Access Token (PAT)

Docker Desktop is running.

cmd.exe

docker login --username <email for my account>

Password:

Typed characters are not visible but I'm sure I'm entering the PAT correctly.

Error response from daemon: Get "https://registry-1.docker.io/v2/": unauthorized: incorrect username or password

How to further diagnose this issue ?

BaltoStar
  • 189
  • 2
  • 11

1 Answers1

0
docker login --username <email for my account>

You don't enter your email here, you enter your username. Change the command to:

docker login --username <your username>
BMitch
  • 5,189
  • 1
  • 21
  • 30