Docker on Windows Server 2016 – Azure Container Registry

This is the 4th post in the Docker on Windows Server 2016 series. Refer back to the initial post for links to all posts in the series.

We Gotta Store the Images Somewhere!

In the second post of this series I mentioned that I was still working to get my Azure credentials cleaned up so I could create an Azure Container Registry (ACR) to act as an image repository until I can make use of a local image repository (on Windows Server 2016). We almost have our enterprise agreement straightened out, which will let me get my Azure benefits in order, but I didn’t want to wait any longer Smile To appease my impatience, I decided to create a new (temporary) Azure account for testing purposes since Azure offers a 30-day trial for free.

Creating an Azure Container Registry

As with most things in Azure, setting up an ACR is quick and simple. Just follow these steps:

  1. Navigate to the Azure portal at https://portal.azure.com and sign in to your Azure account or create a new account with a free, 30-day trial if you don’t have a subscription.
  2. Click on the New option and start typing in “Azure Container Registry” and select it from the list as shown below:

    image

  3. Click the Create button at the bottom of the screen.
  4. Give your registry a name, select the subscription model (e.g. Free Trial), create a new resource group (or use an existing one if you prefer), select the location (Azure region) where you’d like your registry to reside and enable the Admin user for easy testing (this can be turned off for Production use).
  5. Finally, click the Create button at the bottom of the screen.

Once the above steps are completed your registry will be created and setup. I might take a moment or two for this to complete.

Once the setup has completed, you’ll see an overview that looks something like this:

image

Pushing an Image to the Registry

Once your registry is setup you will want to do a quick test to ensure everything is working. Click on the Quick Start option for some basic instructions on testing out your registry.

image

The quick start instructions will show you how to login to your new container registry, tag and push an image to the registry and then pull the image back down.

One last item worth mentioning… If you want to see a list of images (repositories) that have been pushed to your new container registry, click on the Repositories link and then select a repository  to see each image tag within it.

image

That’s all there is to it! You now have a private container registry ready for use.

Happy pushing! (and pulling!)

Related Posts