How to Install Docker on Ubuntu 18.04

In this article, you’ll install and use Docker Community Edition (CE) on Ubuntu 18.04. 

Prerequisites

  • Ubuntu 18.04 64-bit operating system.
  • A user account with sudo privileges

Installing Docker

The Docker installation package available in the official Ubuntu repository may not be the latest version. To ensure we get the latest version, we’ll install Docker from the official Docker repository. To do that, we’ll add a new package source, add the GPG key from Docker to ensure the downloads are valid, and then install the package.