-
Install docker desktop on windows machine
-
Install Azure CLI on windows machine
-
Create Service Principal in Azure AD
-
Create Azure Container Registry
-
Configure RBAC in Azure Container Registry (Acrpull) for the Service Principal
docker version
docker --version
docker images
docker rmi -f 46e18b10d5fe
docker build -t weatherapi:v1 .
NOTE: . denotes the current directory
docker tag weatherapi:v1 acrweather.azurecr.io/weatherapi:v1
az login
NOTE: This opens up the Azure AD login page, enter the credential & login should happen
az acr login --name acrweather
NOTE: Login to the Azure Container Registry. This step is important, else you will get unauthorized error while pushing images to ACR
docker push acrweather.azurecr.io/weatherapi:v1