====== Install Docker Host ======
First, make sure that all of the latest patches are installed.
sudo apt update
sudo apt dist-upgrade
sudo reboot
Add Docker's GPG key that they use to sign the packages and repository:
wget -qO - https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
cat > /tmp/docker.list << EOF
deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable
EOF
sudo mv /tmp/docker.list /etc/apt/sources.list.d/
sudo apt update
Install Docker
sudo apt install docker-ce -y
Verify Docker installed correctly:
sudo docker run hello-world
Use the below command to add additional users to the docker group but at a minimum, you should configure your user account to be able to execute docker commands:
sudo usermod -aG docker $USER
Configure Docker to start on boot:
sudo systemctl enable docker