You are on page 1of 5

DevOpsCheetah

Ho me Linux Clo ud  Pr o g r a mming  Mo nit o r ing  CI/CD  Ca t eg o r ies 

How To Install Docker


 May 25, 2021  Dinesh Jakhar  0 Comment

Installing Docker

We use cookies on our website to give you the most relevant experience by remembering your preferences
and repeat
The visits.installation
Docker By clicking “Accept All”, you
package consent in
available to the
the use of ALLDocker
official the cookies. However, you may visit
repository. Cookie Settings Accept All
"Cookie Settings" to provide a controlled consent.
First, update your existing list of packages:

sudo apt update

 Next, install a few prerequisite packages which let apt use packages over HTTPS:

sudo apt install apt-transport-https ca-certificates curl software-


properties-common

Then add the GPG key for the official Docker repository to your system:

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


add –

Add the Docker repository to APT sources:

sudo add-apt-repository “deb [arch=amd64]


https://download.docker.com/linux/ubuntu bionic stable”

 Next, update the package database with the Docker packages from the newly
added repo:

sudo apt update


 Make sure you are about to install from the Docker repo instead of the default
Ubuntu repo:

apt-cache policy docker-ce

You’ll see output like this, although the version number for Docker may be different:

Output of apt-cache policy docker-ce


docker-ce:
Installed: (none)
Candidate: 18.03.1~ce~3-0~ubuntu
Version table:
18.03.1~ce~3-0~ubuntu 500
500 https://download.docker.com/linux/ubuntu bionic/stable amd64
Packages

Notice that docker-ce is not installed, but the installation is from the Docker
repository for Ubuntu 18.04 (bionic).

Finally, install Docker:

sudo apt install docker-ce

 Docker should now be installed, the daemon started, and the process enabled to
start on boot. Check that it’s running:
sudo systemctl status docker

Check out : HOW TO MIGRATE SQLITE3 DATABASE TO MYSQL FOR GRAFANA

T ags: Docker install , Docker repository , Install Docker

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

Comment

Name *

Email *

Websit e
Save my name, email, and websit e in t his browser for t he next t ime I comment .

POST COMMENT

 Previous Post Next Post 

Blogs About Us Contact Us Privacy Policy    


© 2021. DevOpsCheetah.com

PDFmyURL.com - convert URLs, web pages or even full websites to PDF online. Easy API for developers!

You might also like