Before you install Docker Engine for the first time on a new host machine, you need to set up the Docker repository. Afterward, you can install and update Docker from the repository code example
Example: install docker linux
sudo apt-get install -y xserver-xorg-lts-trusty libgl1-mesa-glx-lts-trusty