Articles → MICROSOFT AZURE → Install Docker Engine On The Virtual Machine

Install Docker Engine On The Virtual Machine

Create A Virtual Machine

Picture showing creating a virtual machine with the ubuntu image

Click to Enlarge

Execute Commands For Installation

sudo apt-get update
sudo apt install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] bionic stable"
sudo apt-get update
sudo apt-get install docker-ce
sudo docker pull nginx:1.17.0
sudo docker run --name sampleapp -p 80:80 -d nginx:1.17.0

Enable Port 80 On The Virtual Machine

Picture showing enabling port 80 on the virtual machine

Click to Enlarge


Picture showing browsing the nginx server home page on the browser

Click to Enlarge

Create The Container Instance

Picture showing the container instances option in the search box

Click to Enlarge

Picture showing a screen for creating the container instance

Click to Enlarge

Picture showing creating the container using the Create container screen

Click to Enlarge

Picture showing the nginx home page in the browser window once container is created

Click to Enlarge

Posted By  -  Karan Gupta
Posted On  -  Sunday, May 16, 2021


Your Email Id  
Query/FeedbackCharacters remaining 250