Setup Docker Trusted Registry on Microsoft Azure

This is the first post in the series of ‘Continuous Integration and Delivery with Docker Trusted Registry on Microsoft Azure’. This is a step by step guidance for implementing http://www.docker.com/sites/default/files/UseCase/RA_CI%20with%20Docker_08.25.2015.pdf on Microsoft Azure.

You can read all the posts in this series at https://manesh.me/2015/11/15/continuous-integration-and-delivery-with-docker-trusted-registry-on-microsoft-azure/.

Prerequisites

  • Microsoft Azure Subscription

Setup Sequence

  • Create virtual machine for Docker Trusted Registry
  • Assign DNS name for DTR virtual machine
  • Download DTR License from Docker Hub
  • Update settings of DTR virtual machine

Create virtual machine for Docker Trusted Registry

Open browser and navigate to https://portal.azure.com/

From Azure Portal, click New, then Compute, then Marketplace

Type Docker in the search box and press Enter, then click on ‘Docker Trusted Registry‘ from the search results

Read the description of marketplace virtual machine image for DTR and click Create

Provide basic configuration details for the virtual machine (you can change details as per your environment) and click OK

  • Name: mme-dtr
  • User name: cicdagent
  • Authentication Type: Password
  • Password: Azure101!
  • Resource Group: DTR
  • Location: South Central US

For size configuration details, choose D2 Standard and click Select

Choose default settings for optional features, and click OK

Review summary details and click OK

Review buy / offer details and click Purchase

Now you will see that Docker Trusted Registry is Deploying. Wait for the virtual machine to be in Running state.

Assign DNS name for DTR virtual machine

Click on Virtual Machines (remember, we created the virtual machine with Resource Manager as the deployment model) and click on mme-dtr

Click on Public IP Address

Click on Configuration, enter mme-dtr for DNS name label and click Save. Note that sometimes dns names might be already reserved by someone else, so choose different name if the default vm name is not available.

Ensure you can browse to the virtual machine with public DNS name. In this case it is https://mme-dtr.southcentralus.cloudapp.azure.com. Ignore the certificate error.

Download DTR License from Docker Hub

Open browser and navigate to https://hub-beta.docker.com/enterprise/

Login to the portal. If you do not have an account, sign up first and login to the portal.

Once logged in, navigate to https://hub.docker.com/enterprise/ and click on Get Stated for Trial. Note that based on your requirement, you can choose other subscriptions as well. Also, however we started on hub-beta.docker.com, it redirects back to hub.docker.com

Private your contact information and click on ‘Start Your Free Trial’

Click on down arrow near your username, and click on Settings

Click on Licenses and then on Download icon

Save the downloaded docker_subscription.lic file in your local machine.

Update settings of DTR virtual machine

Open browser and navigate to https://mme-dtr.southcentralus.cloudapp.azure.com/admin/

Click on the warning shown on the dashboard page.

Provide fully qualified domain name and click Save and restart.

Note: I was not able to get the save button working properly on Internet Explorer. It worked well for me on Chrome. Also, server might take about 30 seconds to reboot.

Wait for 30 seconds, refresh the browser and ensure that the ‘domain name missing‘ warning is no longer there.

Click on the ‘Unlicensed copy’ warning message

Click on Choose File, select the downloaded license file from local machine and click on Save and restart

Once license is applied successfully, you should see the Tier getting updated to Trial

Next Blog

You can read the next post in this blog series here, https://manesh.me/2015/11/18/setup-jenkins-master-on-microsoft-azure-for-cicd-with-dtr/.

About Manesh

Manesh is a software consultant and solutions architect specializing in cloud, data, Linux and devops in the azure realm with key focus on hybrid workloads. He has been working on Azure technologies since its inception and has helped many enterprises to onboard and adapt to Azure cloud, build solutions for datacenter scale / high consumer applications and services. Currently, he is Microsoft certified for Developing Microsoft Azure Solutions (70-532), Implementing Microsoft Azure Infrastructure Solutions(70-533) and Architecting Microsoft Azure Solutions (70-534).

Posted on 2015/11/16, in DevOps, Microsoft Azure and tagged , , , , , , . Bookmark the permalink. 1 Comment.

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 )

Facebook photo

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

Connecting to %s

https://hyper-v.nu/

My views on technology

Virtualization and some coffee

My views on technology

Thomas Maurer

Cloud and Datacenter Blog focusing on Microsoft Azure

Cloud Administrator in Azure World

Begin Your Azure Management Journey with the Cloud Administrator

%d bloggers like this: