UPDATE 26/07/2015
In typical fashion, a few weeks after posting this Docker themselves released a much better version than mine, you can install it using the following commands;
curl -sSL https://get.docker.com/ | sh
systemctl enable docker && systemctl start docker
docker run hello-world
What follows is the original, now mostly redundant post.
It’s been a while since I touched the code for the one-liner Docker installer I wrote a while back.
Times have moved on, the official CentOS version is more up-to-date than it was once was (it’s currently at 1.6) and Docker now provide [their own RPM](https://docs.docker.com/engine/install/centos/ “Offical Docker Docs - “Linux””) for installing the latest version (currently 1.7) on CentOS 7. Also, docker-compose has replaced [fig](/2014/08/31/docker-fig-nginx-reverse-proxies-and-centos-7/“Docker, Fig, NGINX Reverse Proxies and CentOS 7”).
As I am going to be doing a lot with Docker over the next few months (more on that in the next few weeks) I decided it was time to update the script.
It now downloads a copy of the official RPM from get.docker.com as well as installs the latest version of docker-compose, to help with the muscle memory it creates an alias for fig so that you can still use the command (just remember to call you configuration docker-compose.yml and not fig.yml).
You can see the updated script in action below;
or run it using;
curl -fsS https://raw.githubusercontent.com/russmckendrick/docker-install/master/install-offical | bash
It is also available at GitHub .