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
Step 3
I’ve talked about all of the steps so you possibly can present the main points as per your undertaking.
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
Step 5
Present your community particulars and overview and create, as soon as validation handed click on to create
Step 6
Deployment in progress
Step 7
My VM has been created efficiently
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
Step 2
Now I’ll join my VM by means of Putty Open>Putty>kind your public ip>open
Step 3
Typ your VM username and password
Step 4
First, replace your package deal utilizing the command
sudo apt-get replace
Step 5
This command used for HTTPS permits
sudo apt set up apt-transport-https ca-certificates curl software-properties-common
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
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
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.