Comment on page

Build and upload docker image

Download the sample code, build and upload the docker image
The following are the high-level steps:
  • Download and clone the sample repository on your workstation
git clone https://github.com/Azure-Samples/dotnetcore-docs-hello-world.git
  • Login to the Azure Container registry
az acr login -n <your_registry_name>
  • Build the docker image
docker build -f Dockerfile.linux -t <your_registry_name>.azurecr.io/dotnetcore-docs-hello-world-linux .
  • Upload the image to the container registry
docker push <your_registry_name>.azurecr.io/dotnetcore-docs-hello-world-linux:latest