add key
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
add sources
sudo apt-add-repository 'deb https://apt.dockerproject.org/repo ubuntu-xenial main'
update
apt update
install
apt install -y docker-engine
configuration
user config
sudo usermod -aG docker $(whoami)
Using the Docker Command
docker [option] [command] [arguments]