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/.
- Microsoft Azure Subscription
- 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
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/.
Posted on 2015/11/16, in DevOps, Microsoft Azure and tagged Cloud, Continuous Delivery, DevOps, Docker, Linux, Microsoft Azure, Ubuntu. Bookmark the permalink. 1 Comment.
Pingback: Continuous Integration and Delivery with Docker Trusted Registry on Microsoft Azure | Imagine - Experiment - Realize