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
- 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”).
- To work, you must open port 80 (TCP) and 443 (TCP) in the network properties in the azure firewall.
- 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.
- To create a DNS name through Azure Portal, go to the VM settings in the “Overview” section.
- Go to “DNS name” settings
- Fill in the “DNS name label” field and click <Save> at the top.
Server connection and configuration through the PuTTY SSH client
- To connect to a VM, you need the PuTTy application to connect via ssh. You can download it at the following link – Download
- Run Putty, enter the VM address in the “Host” field, and click “Open” to connect.
- In the opened console you will need to enter a username and password that were specified when creating the virtual machine.
- Use following command to increase the privileges
> sudo su
- Use following command to set the domain name
> domedit %DNSname%
- Use following command to install the certificate
> certinstall %DNSname%
- 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.
- First you should go to the desired directory:
> cd /docker-registry/auth
- Enter the command:
> htpasswd -B registry.password azureuser
- 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