Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Azure by (4k points)

I've never set the user name and password, how can I configure the docker to use the service principle?

1 Answer

0 votes
by (9.6k points)
edited by

The container registry already has the username and password. On turning on the admin mode, you'll be able to view the username and password for it. 

On entering the username and password, you will be able to log in to the Azure portal

docker login myregistry.azurecr.io

Once the service principal is created you can run the following command: 

docker login myregistry.azurecr.io --username $SP_APP_ID --password $SP_PASSWD
Are you looking to crack the Azure Certification Exam? Check out Intellipaat's Azure Administrator Certification!

Browse Categories

...