This post provides practical steps to setting up docker to run on Linux Mint 17.2, which is what I’m using on my development machine at the moment.
Before beginning, make sure you have remove any existing version(s) of Docker from your system.
First, add the Docker repository key
sudo apt-key adv --keyserver hkp://pgp.mit.edu:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609
Then create a new file for apt to find the Docker repository
sudo nano /etc/apt/sources.list.d/docker.list
Inside the docker.list file enter the following
# Ubuntu Trusty/Mint 17.2 deb https://apt.dockerproject.org/repo ubuntu-trusty main
Save and close the file. Now we want to get the latest updates from the new repository
sudo apt-get update
Once this finishes, you should now be able to install the latest Docker version
sudo apt-get install docker-engine
Once this has run, you can test the hello world docker image, which is tiny and quick to download
sudo docker run hello-world