For this recipe, we will use a Linux server running Ubuntu 16.04.2 x64.
- Download the latest .deb file from https://download.docker.com/linux/ubuntu/dists/xenial/pool/stable/amd64/. For other Linux distros, you can find the packages at https://download.docker.com/linux/:
$ wget https://download.docker.com/linux/ubuntu/dists/xenial /pool/stable/amd64/docker-ce_17.03.2~ce-0~ubuntu-xenial_amd64.deb
- Install the Docker package using the dpkg package manager:
$ sudo dpkg -i docker-ce_17.03.2~ce-0~ubuntu-xenial_amd64.deb
The name of the package will vary based on the version you have downloaded.
- After successful installation, the Docker service starts running. You can verify this by using the service command:
$ service docker ...