Quick method to install Docker on Linux
Download installation script
$ curl -fsSL https://get.docker.com -o install-docker.sh
Run the script as root
$ sudo sh install-docker.sh
Add current user to docker
user group
$ sudo usermod -a -G docker <user>
# Example:
$ sudo usermod -a -G docker john
Re-login into the machine to apply changes
Check if docker successfully installed
$ docker --version
$ docker ps