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