/ DOCKER

Update to CentOS 7 Docker install one-liner

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 <a href="https://get.docker.com/" target="_blank" data-href="https://get.docker.com/">https://get.docker.com/</a> | sh
systemctl enable docker &amp;&amp; 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 for installing the latest version (currently 1.7) on CentOS 7. Also, docker-compose has replaced fig.

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; asciicast or run it using;

curl -fsS <a href="https://raw.githubusercontent.com/russmckendrick/docker-install/master/install-offical" target="_blank" data-href="https://raw.githubusercontent.com/russmckendrick/docker-install/master/install-offical">https://raw.githubusercontent.com/russmckendrick/docker-install/master/install-offical</a> | bash

It is also available at GitHub.

russmckendrick

Russ McKendrick

Buys way too many vinyl records, writes a lot about Docker & loves orchestration. Works at @node4ltd / @n4stack has written for @PacktPublishing

Read More