Getting below error while logging to container registry
Command:
docker login <MY_REGISTRY_NAME>.azurecr.io
Error Message:
Error response from daemon: Get https://<MY_REGISTRY_NAME>.azurecr.io/v2/: unauthorized: Application not registered with AAD
In the Azure portal, select Azure Active Directory in the left pane and select App registrations and click on New registration. In the Register an application page, enter your application's registration information: In the Name section, enter a meaningful application name that will be displayed to the users.
Applications are added to Azure AD to leverage one or more of the services it provides including: Application authentication and authorization. User authentication and authorization. SSO using federation or password.
Individual login with Azure AD. When you log in with az acr login , the CLI uses the token created when you executed az login to seamlessly authenticate your session with your registry. To complete the authentication flow, the Docker CLI and Docker daemon must be installed and running in your environment.
When authenticating with an Azure container registry, there are two primary scenarios: individual authentication, and service (or "headless") authentication. The following table provides a brief overview of these scenarios, and the recommended method of authentication for each.
Go to Access Keys in Container Registry and enable the admin user, then use the autogenerated credentials to login via Docker
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With