This tutorial will educate you how you can deploy the docker utilizing an open supply VM (Ubuntu Server 20.04 LTS) in Azure Portal.
Navigate to your Useful resource Group. My useful resource group is Shanuka-RG
Within the Azure portal, seek for the Ubuntu server and click on Create
I’ve talked about all of the steps so you possibly can present the main points as per your undertaking.
I’ve Disk kind SSD premium. As per your undertaking you possibly can have the ability to change and click on Subsequent: Networking
Present your community particulars and overview and create, as soon as validation handed click on to create
Deployment in progress
My VM has been created efficiently
Implement Ngnix service on my Ubuntu VM
Earlier than implementing the Nginx service I simply copy the general public IP and test with my browers
Now I’ll join my VM by means of Putty Open>Putty>kind your public ip>open
Typ your VM username and password
First, replace your package deal utilizing the command
sudo apt-get replace
This command used for HTTPS permits
sudo apt set up apt-transport-https ca-certificates curl software-properties-common
This command for docker obtain
curl -fsSL https://obtain.docker.com/linux/ubuntu/gpg | sudo apt-key add –
This command creates the repository
sudo add-apt-repository "deb [arch=amd64] https://obtain.docker.com/linux/ubuntu bionic secure"
This command for docker set up
sudo apt-get set up docker-ce
This command for pulling the Nginx service
sudo docker pull nginx:1.17.0
This command for a pattern undertaking
sudo docker run --name sampleapp -p 80:80 -d nginx:1.17.0
My Nginx service appears working good with public IP
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.