Implementing Azure Container Registry

Posted: November 2, 2017 in Azure

Container registry is “store” for container images (I already touched this topic before)

In Azure new-Containers-Azure Container Registry

1

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)

2.png

In access key section we can see username/password

3

Install docker for Windows 

1.png

And login to newly created Azure registry (use credentials from Access Keys section)

4

docker login --username user --password password mytestazureregistry.azurecr.io

I searched for windows images

5

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

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s