Before installing docker on ubuntu, if you want to learn docker basics, head over to this article – what is docker?
In this article, we will explain how to get started with Docker by installing and configuring it on a Ubuntu server with 6 simple steps and a one-liner command to install the latest docker version.
Docker supports almost all Unix and Linux distributions. Getting started with Docker is very easy. There is no complicated configuration for Docker.
Install Docker on Ubuntu
Docker package is available in the native apt repository. The installation package available in the repository will not be the latest version. If you want to install the latest release of Docker, you need to install it from the source.
Installing Docker From apt Repository
Follow the instructions give below to install docker from the apt repository.
Step 1: Update the apt cache.
sudo apt-get update -y
Step 2: Add the GPG key.
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key...