How to Install Docker Engine on Ubuntu 19.10/18.04

Docker is a tool that allows you to easily build, test and deploy applications smoothly and quickly using containers. Containers allow a developer to package an application with its dependencies and ship it out as a single package. Docker provides a more efficient and lightweight environment to deploy the application.

Useful Articles:

In this tutorial helps you to install Docker on Ubuntu 19.10/18.04

Step 1: Uninstall Old Versions

If old version of Docker is installed in your system then please remove it and it’s dependencies before proceeding with the installation.

$ sudo apt remove docker docker-engine containerd runc

Step 2: Add Docker Repository

Run the following command which will add the Docker repository to your system:

First, update the apt package index and install packages to allow apt to use a repository over HTTPS

$ sudo apt update
$ sudo apt install \
    apt-transport-https \
    ca-certificates \
    curl \
    gnupg-agent \

Add Docker’s official GPG key:

$ curl -fsSL | sudo apt-key add -

Verify that you now have the key with the fingerprint 9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88.

$ sudo apt-key fingerprint 0EBFCD88

Use the following command to set up the stable repository.

$ sudo add-apt-repository \
   "deb [arch=amd64] \
   $(lsb_release -cs) \

Step 3: Install Docker Engine

Docker engine official repository is now available in your system. Now you can install the Docker using the following command

$ sudo apt-get update
$ sudo apt-get install docker-ce docker-ce-cli

Step 4: Install Specific Versions Docker Engine

To install a specific version of Docker Engine, list the available versions in the repo, then select and install:

List and sort the versions available in your repo.

$ apt-cache madison docker-ce

Install a specific version by its fully qualified package name.

$ sudo apt-get install docker-ce=<VERSION_STRING> docker-ce-cli=<VERSION_STRING>

Step 5: Start Docker

After, Docker package has been installed, start the docker service and enable it at boot time using the below commands:

# systemctl enable docker
# systemctl start docker

Step 6: Check Docker Version

Run mention command to check the docker version.

# docker version

Step 7: Check Docker Info

Now, you can check some docker info using mention command.

# docker info

Step 8: Verify that Docker Engine

Verify that Docker Engine is installed correctly by running the following command.

# docker run hello-world


Enjoy it!

No Responses

Leave a Reply

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

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.