Guide – How To Start – Docker Registry: Highly Scalable Server on Ubuntu

Docker helps developers bring their ideas to life by conquering the complexity of app development. We simplify and accelerate development workflows with an integrated dev pipeline and through the consolidation of application components. 

This is a quick deployment and ready-to-run image.
Simple and rapid installation. Easy to maintain.

Connection and configuration of Docker Registry: Highly Scalable Server on Ubuntu

Opening ports and creating DNS name through Azure Portal

  1. After purchasing and starting the VM you should know its IP address. You can find it in the personal account of Azure. (It is necessary to select the virtual machine from the list. By clicking the item “Overview”, your IP is displayed in the line of “Public IP Address”).
  1. To work, you must open port 80 (TCP) and 443 (TCP) in the network properties in the azure firewall.
  2. Next, it is necessary to create a DNS name that will be used for the further connection.
    You can specify your DNS name (for which an SSL certificate has been already purchased) and skip this step. 
  3. To create a DNS name through Azure Portal, go to the VM settings in the “Overview” section.
  4. Go to “DNS name” settings
  1. Fill in the “DNS name label” field and click <Save> at the top.

Server connection and configuration through the PuTTY SSH client

  1. To connect to a VM, you need the PuTTy application to connect via ssh. You can download it at the following link – Download
  2. Run Putty, enter the VM address in the “Host” field, and click “Open” to connect.
  1. In the opened console you will need to enter a username and password that were specified when creating the virtual machine.
  2. Use following command to increase the privileges 

> sudo su

  1. Use following command to set the domain name

> domedit %DNSname%

  1. Use following command to install the certificate

> certinstall %DNSname%

  1. By default, the azureuser is already created in the docker registry with the password azurepwd, so it is important to change the password for security purposes.
  2. First you should go to the desired directory:

> cd /docker-registry/auth

  1. Enter the command:

> htpasswd -B registry.password azureuser

  1. The line “New password:” will appear. Enter a new password (note that the password entry will not be displayed in the console) and press “Enter”. Enter the password again and press “Enter”.

At this stage, the basic server configuration has been completed.

You can add your users to the docker registry with the command:

> htpasswd /docker-registry/auth/registry.password

You can go to the file with the list of users with the command:

> sudo nano /docker-registry/auth/registry.password

WordPress.com.

Up ↑

%d bloggers like this: