Azure

How To Deploy Docker In Ubuntu Server Utilizing Azure Portal

Introduction

This tutorial will educate you how you can deploy the docker utilizing an open supply VM (Ubuntu Server 20.04 LTS) in Azure Portal.

Step 1

Navigate to your Useful resource Group. My useful resource group is Shanuka-RG

Step 2

Within the Azure portal, seek for the Ubuntu server and click on Create

How To Deploy Docker In Ubuntu Server Using Azure Portal

Step 3

I’ve talked about all of the steps so you possibly can present the main points as per your undertaking.

How To Deploy Docker In Ubuntu Server Using Azure Portal

How To Deploy Docker In Ubuntu Server Using Azure Portal

Step 4

I’ve Disk kind SSD premium. As per your undertaking you possibly can have the ability to change and click on Subsequent: Networking

How To Deploy Docker In Ubuntu Server Using Azure Portal

Step 5

Present your community particulars and overview and create, as soon as validation handed click on to create

How To Deploy Docker In Ubuntu Server Using Azure Portal

Step 6

Deployment in progress

How To Deploy Docker In Ubuntu Server Using Azure Portal

Step 7

My VM has been created efficiently

How To Deploy Docker In Ubuntu Server Using Azure Portal

Implement Ngnix service on my Ubuntu VM

Step 1

Earlier than implementing the Nginx service I simply copy the general public IP and test with my browers

How To Deploy Docker In Ubuntu Server Using Azure Portal

How To Deploy Docker In Ubuntu Server Using Azure Portal

Step 2

Now I’ll join my VM by means of Putty Open>Putty>kind your public ip>open

How To Deploy Docker In Ubuntu Server Using Azure Portal

Step 3

Typ your VM username and password

How To Deploy Docker In Ubuntu Server Using Azure Portal

Step 4

First, replace your package deal utilizing the command

sudo apt-get replace

How To Deploy Docker In Ubuntu Server Using Azure Portal

Step 5

This command used for HTTPS permits

sudo apt set up apt-transport-https ca-certificates curl software-properties-common

How To Deploy Docker In Ubuntu Server Using Azure Portal

Step 6

This command for docker obtain

curl -fsSL https://obtain.docker.com/linux/ubuntu/gpg | sudo apt-key add –

Step 7

This command creates the repository

sudo add-apt-repository "deb [arch=amd64] https://obtain.docker.com/linux/ubuntu bionic secure"

Step 8

This command for docker set up

sudo apt-get set up docker-ce

How To Deploy Docker In Ubuntu Server Using Azure Portal

Step 8

This command for pulling the Nginx service

sudo docker pull nginx:1.17.0

Step 9

This command for a pattern undertaking

sudo docker run --name sampleapp -p 80:80 -d nginx:1.17.0

Step 10

My Nginx service appears working good with public IP

How To Deploy Docker In Ubuntu Server Using Azure Portal

Conclusion 

This text taught us how you can arrange docker utilizing Ubuntu Server 20.04 LTS on Azure portal. When you’ve got any questions, please contact me.

Thanks.

Show More

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button