skip to Main Content

Good morning guys, I can’t access the terminal in my account:
Command:

docker login
Error response from daemon: Get "https://registry-1.docker.io/v2/": unauthorized: please use personal access token to login

I put the correct id and correct password. Nothing and nothing. I tried several times until I found the solution below. Maybe there’s a better alternative. But for next is my problem occurred.

3

Answers


  1. Good morning guys.

    I tried to access my docker account through the terminal, got the error:

    Error response from daemon: Get "https://registry-1.docker.io/v2/": unauthorized: please use personal access token to login.
    

    I tried to change the password it wasn’t either.

    I removed the "Two-factor authentication" I was able to login without problem.
    

    That was the quickest solution I did, it solved. Maybe the next one will have a similar problem, here’s my example.

    Login or Signup to reply.
  2. You must set up the docker PAT (Personal Access Token) first with Read/Write/Delete permissions.
    Then give that access token instead password

    docker login registry.example.com -u <your_username> -p <your_personal_access_token>
    
    Login or Signup to reply.
  3. Apparently, if 2FA is enabled, you must use a personal access token instead of a password. You can refer to this instruction for specific steps.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search