Pushing image from Docker to ACR is failing even the I used access key correctly

Varma 1,495 Reputation points
2025-04-19T03:41:38.5333333+00:00

I am using following command , but failing with following error message:

User's image

XXXXX:~$ docker login

Log in with your Docker ID or email address 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.

You can log in with your password or a Personal Access Token (PAT). Using a limited-scope PAT grants better security and is required for organizations using SSO. Learn more at https://docs.docker.com/go/access-tokens/

Username: ACRSSS

Password:

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

Azure Container Registry
Azure Container Registry
An Azure service that provides a registry of Docker and Open Container Initiative images.
493 questions
{count} votes

Accepted answer
  1. TP 118.5K Reputation points
    2025-04-19T04:31:56.51+00:00

    Hi,

    You need to specify the server, similar to below:

    docker login acrsss.azurecr.io
    

    docker login

    https://docs.docker.com/reference/cli/docker/login/

    Please click Accept Answer and upvote if the above was helpful.

    Thanks.

    -TP

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.