Well let us get started on this roller coaster of a ride where programmers only think about themselves and screw their fanboys and haters in one shot.
There is not a simple install script you can curl to install docker any longer, someone though this booger needed to be picked.
So with this forking I am going to be doing the installation on Ubuntu, and screw all the other platforms.
First off, you are installing software, on a linux box, that can destroy the world. Make sure you have root access.
Step one, run apt-get update, to get the latest everything cached.
Once that is done, we need to make sure that our brand new install of ubuntu has the correct version of the CA Certificates along with the ability to allow apt sources to use https.
The third step on this immortal journey to install docker is to get the docker apt-key from their host, on port 80.
Next we want to add our special location, you know the place, yeah that is right.
The final step is to recommend that the apt-cache policy be set to always select the latest version of the docker-engine, so lets do that, just because we were told to. We also need to do an apt-get before we can set the cache policy
The docs say to install linux-image-extras-$(`uname -r`) and apparmor here, but every time i have checked, they have been installed.
So do as you want, it is your life to crash and burn.
FINALLY!!! we are at the docker install steps!!
So let us use the power of the mighty apt-get install docker-engine to install docker-engine
But first! make sure you do apt-get update, again and again and again.
Now let's hit the sudo apt-get install docker-engine
What the docs do not warn you about are all the extra stuff that needs to be installed.
It requires git, and the git world of packages, but it also requires a second round of tools for the different file systems and cgroups. Remember not everything is required.
And after all this, I miss the curl install, oh well, it was a good life of not knowing what my server was doing.
Last step, do the docker test, docker run hello-world
If you don't give two flying monkeys about security, you can add your user to the docker group with the simple groupmod -aG docker hifi
Replace hifi with your user name, because I am hifi, you are not.
In short, they other version should work in a similar manner, this was for Ubuntu 14.04 because I care about the world.
Please note, I was able to use sudo to do all of these commands in both text, and the video at the beginning.
In closing, there are things, things change, read the updated documents, they will update them eventually.