how to install docker in ubuntu 18.04

Hi Techrunnr, subscribers, today we will show you how to install docker in ubuntu 18.04.
Docker is a computer program that performs operating-system-level virtualisation also known as containerization. It was first released in 2013 and is developed by Docker, Inc. Docker is used to run software packages called “containers”.


To know more about difference between container and virtual machine check here

Make your system upto date

sudo apt update
sudo apt install apt-transport-https ca-certificates curl software-properties-common

Add The Docker Repository

Create a new file for the Docker repository at /etc/apt/sources.list.d/docker.list.

deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable

Add Docker’s GPG key

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

Again update your system after adding the repository

 sudo apt update

Install Docker CE

sudo apt install docker-ce

check Docker version

docker –version

Docker version 18.03.0-ce, build 0520e24

More about how to use docker check here.

© 2018, Techrunnr. All rights reserved.

#1
#2
#3
Questions Answered
Articles Written
Overall Points

Prabhin Prabharkaran

He is Technical professional. He is a person who loves to share tricks and tips on the Internet. He Posts what he does!!

Leave a Reply

Please wait...

Subscribe to our newsletter

Want to be notified when our article is published? Enter your email address and name below to be the first to know.