Azure-docs: Using ACR: authentication required error

Created on 9 Jul 2018  Â·  4Comments  Â·  Source: MicrosoftDocs/azure-docs

After filling .env I still can't push the docker image to ACR:

The push refers to repository [ZZZZZZZZZ.azurecr.io/mysamplemodule1]
65c5cf485471: Preparing
3d34bf3bd18c: Preparing
d27f03b8c35c: Preparing
4fa02ffd21f7: Preparing
750bc07a1d99: Preparing
96d34cb80eb6: Waiting
c5a11fc258f4: Waiting
bbe892a9c337: Waiting
a2e66f6c6f5f: Waiting
unauthorized: authentication required

I can work around by first logging in the docker client:
docker login <ACR_domain_name>


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

assigned-to-author doc-bug iot-edgsvc triaged

Most helpful comment

To push an image, we need to do docker login first on the development machine.
The credentials in the env file are for the edge runtime. So that the edge runtime can pull down the image from the ACR.

All 4 comments

@CIPop Thanks for the feedback! I have assigned the issue to the content author to evaluate and update as appropriate.

@shizn The first step should be to authenticate and then proceed with the steps outlined.

To push an image, we need to do docker login first on the development machine.
The credentials in the env file are for the edge runtime. So that the edge runtime can pull down the image from the ACR.

We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

spottedmahn picture spottedmahn  Â·  3Comments

Ponant picture Ponant  Â·  3Comments

behnam89 picture behnam89  Â·  3Comments

Agazoth picture Agazoth  Â·  3Comments

ianpowell2017 picture ianpowell2017  Â·  3Comments