How to Install Docker in Ubuntu 18.04 Cheat-sheet

How to install Docker in Ubuntu 18.04: Docker is containerization application. Containers are platforms that let you run your applications in resource-isolated processes.

Unlike virtual machines that you create in Virtual Box, containerization applications like Docker provide more portability, user-friendliness, and closeness to the host operating system and its resources.

Here in this post, I am going to share how you can install docker in Ubuntu 18.04.

Housekeeping Commands

sudo apt update
sudo apt install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"
sudo apt update
apt-cache policy docker-ce

Understanding the Commands

  1. The first command updates the existing packages.
  2. The second command installs prerequisite packages which let apt use packages over HTTPS
  3. Then add the GPG key for the official Docker repository to your system.
  4. Add the Docker repository to apt sources.
  5. Update the packages repository
  6. Make sure that the Docker gets installed from Docker repo, not from cache.

Docker Installation

Now you are ready to install Docker. The following to commands will help you to install and check the status of the docker service respectively.

sudo apt install docker-ce
sudo systemctl status docker

How to Install Docker in Ubuntu 18.04 Cheat-sheet

Docker Installation Cheat-sheet
Docker Installation Cheat-sheet

 

Leave a Reply

Discover more from BHUTAN IO

Subscribe now to keep reading and get access to the full archive.

Continue reading

Scroll to Top