Docker Installation Guide on Ubuntu
For Debian: https://store.docker.com/editions/community/docker-ce-server-debian?tab=description
# Prerequisites
# To install Docker CE, you need the 64-bit version of one of these Ubuntu versions:
# Yakkety 16.10
# Xenial 16.04
# Trusty 14.04
# 1. Set up the repository
# Set up the Docker CE repository on Ubuntu. The lsb_release -cs sub-command prints the name of your Ubuntu version, like xenial or trusty.
sudo apt-get -y install apt-transport-https ca-certificates curl
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 $(lsb_release -cs) stable"
sudo apt-get update
# 2. Get Docker CE
# Install the latest version of Docker CE on Ubuntu:
sudo apt-get -y install docker-ce
# 3. Test your Docker CE installation
# Test your installation:
sudo docker run hello-world
# 4. Optional
# https://docs.docker.com/engine/installation/linux/linux-postinstall/
# https://docs.docker.com/engine/userguide/