In this lab you will learn how to manually push your container into a docker registry on Azure. Later on we will start using the DevOps pipeline to do so but for now this is manual.
Login to Azure.
Create a docker registry.
Click on the newly created registry and go to Settings
-> Access keys
in the left navigation.
Note the parameters you will need to access the registry.
docker login -u <azure registry user> <azure registry host>
You will be asked for the password interactively. docker
will prevent you from using the -p
parameter for
security reasons.
<registryname>/<image>:<version>
. While you can omit the version, the registry name and image name are mandatory.
docker tag demoapp <registryname>/demoapp
docker images
. To to finally upload your image to the registy, use:
docker push <registryname>/demoapp
The output should be similar to this:
$ docker push <registryname>.azurecr.io/demoapp The push refers to repository [<registryname>.azurecr.io/demoapp] d4a4904ce1b5: Pushed ceaf9e1ebef5: Pushed 9b9b7f3d56a0: Pushed f1b5933fe4b5: Pushed latest: digest: sha256:fe8ad6c5c11f9d6659f2ea205fcf4183c4001b53e3c910a491209ce3b710453e size: 1159