Container registry is “store” for container images (I already touched this topic before)
In Azure new-Containers-Azure Container Registry
Enable Admin user (this allows you to use the registry name as username and admin user access key as password to docker login to the registry)
In access key section we can see username/password
Install docker for Windows
And login to newly created Azure registry (use credentials from Access Keys section)
docker login --username user --password password mytestazureregistry.azurecr.io
I searched for windows images
and installed one of them,because this image doesn’t exists in our registry it will be downloaded from docker hub
docker pull microsoft/azure-cli Using default tag: latest latest: Pulling from microsoft/azure-cli 9f0706ba7422: Pull complete 99b6c0e3989b: Pull complete 35e890954c0c: Pull complete 7c081089dee1: Pull complete Digest: sha256:4e84d954e3b7adecf3b5085d8baba32409fbe8b51d511a2bb2f2bc545531cfdb Status: Downloaded newer image for microsoft/azure-cli:latest
I removed image:
docker rmi microsoft/azure-cli -f Untagged: microsoft/azure-cli:latest Untagged: microsoft/azure-cli@sha256:4e84d954e3b7adecf3b5085d8baba32409fbe8b51d511a2bb2f2bc545531cfdb
And i installed it again
docker pull microsoft/azure-cli Using default tag: latest latest: Pulling from microsoft/azure-cli Digest: sha256:4e84d954e3b7adecf3b5085d8baba32409fbe8b51d511a2bb2f2bc545531cfdb Status: Image is up to date for microsoft/azure-cli:latest
Because this time image is already stored in registry it takes less time to deploy
docker run -it microsoft/azure-cli root@29f1f01b49e4:/# ls bin boot dev etc home lib lib64 media mnt opt proc root run sbin srv sys tmp usr var
To leave container running press CTL+Q or CTRL+P