It’s pretty simple to install Docker on Ubuntu.
Target machine must have a 64-bit version of Ubuntu installed.
Procedure for installing Docker on Ubuntu 20.04 64-bit is documented below.
# Uninstall older versions, if they were already installed sudo apt-get remove docker docker-engine docker.io containerd runc # Update the packages index and install the dependencies necessary to add # a new HTTPS repository sudo apt update sudo apt install apt-transport-https ca-certificates curl gnupg-agent software-properties-common # If we are installing docker for the first time on a new host system, we # need to set up the Docker repository and import the repository's GPG key # Import repository's GPG key using the curl command (prints OK on success) curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - # Add the docker apt repository to the system sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" # Install the latest version of docker sudo apt install docker-ce docker-ce-cli containerd.io # Print list of all the available versions in the docker repository apt list -a docker-ce # To install a specific version (say 5:19.03.15), add the version to the package sudo apt install docker-ce=5:19.03.15~3-0~ubuntu-focal docker-ce-cli=5:19.03.15~3-0~ubuntu-focal containerd.io