< Previous Solution - Home - Next Solution >
This is PATH A. Use this path if your students want to understand what’s involved in creating a Docker container, and understand basic docker commands. In this path, your students will create a Dockerfile, build and test local containers, and then push these container images to Azure Container Registry.
*Note that for Azure Government deployments, the container registry url suffix is *.azurecr.us.*
az acr create -n <name of registry> -g <resource group> --sku Standard
az acr login --name <name of ACR>
docker tag <name of image> <name of ACR>/<namespace>/<name of image>
docker tag content-web peteacr01.azurecr.io/wthaks/content-web
docker tag content-api peteacr01.azurecr.io/wthaks/content-api
docker push <name of ACR>/<namespace>/<name of image>
docker push peteacr01.azurecr.io/wthaks/content-web
docker push peteacr01.azurecr.io/wthaks/content-api
az acr repository list --name <name of ACR>