Docker Deployment Platform - CentOS Atomic Host

We are looking for a deployment platform for our Docker containers and since we've been using RHEL for most of our servers, we're now setting up our development environment with CentOS Atomic Host 7. Since we just want to try it out first before using the official RHEL Atomic Host 7, this can be a good start exploring this platform.

I found a Vagrant image for this. Latest version is:
CentOS Atomic Host 7 (x86_64) v7.1607

It support libvrt but I am using VirtualBox.

If you have Vagrant, it is very straightforward:

$ vagrant init centos/atomic-host; vagrant up --provider virtualbox

If you are using Vagrant 1.8.5 and you are seeing this error when starting the VM, you need to apply a patch as mentioned here.

default: Inserting generated public key within guest...
default: Removing insecure key from the guest if it's present...
default: Key inserted! Disconnecting and reconnecting using new SSH key...
default: Warning: Authentication failure. Retrying...
default: Warning: Authentication failure. Retrying...
default: Warning: Authentication failure. Retrying...

Once you've applied the patch, destroy the VM image and run the vagrant init command again.


When everything looks and feels good, ssh to the VM

$ vagrant ssh

Docker can be run using sudo after logging in:

$ sudo docker --version

Docker version 1.10.3, build d381c64-unsupported (current version)


I have yet to find a way to upgrade the docker version. Will update here if I find it.

CentOS Atomic Host also has Kubernetes built-in to manage your containers so that is really neat. I will explore that soon!

Melvin Vivas

Melvin Vivas

Father of 2 wonderful kids, loves programming, wannabee gopher, currently working at an international bank. Bloggin' about Golang, Docker, and Kubernetes.

Read More