Docker 0.7 & [RedHat | CentOS] 6.5

So I have been playing Docker on Ubuntu for about 6 weeks and fell in love with the technology and the potential it has to simplify some deployment environments I have for some clients running at both Amazon and Rackspace. It has not been until this week that I have been able to test this technology with some of my corporate clients that are running private clouds because they are using RHEL/CentOS that used to require a special kernel that would break their SLA with RedHat if we went down this path.

So today I am happy to provide directions on running Docker 0.7 with RHEL/CentOS 6.5. Run all of these commands as root or sudo.

  1. Download the CentOS 6.5 Minimal Release
    http://yum.singlehop.com/CentOS/6.5/isos/x86_64/CentOS-6.5-x86_64-minimal.iso
  2. Install CentOS 6.5 with all of the defaults
  3. Install the EPEL Repository
    rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
  4. Install Docker from RPM
    yum install docker-io wget
  5. Start Docker
    /etc/init.d/docker start
  6. Let’s create a new base filesystem
    cd /tmp
  7. Install some dependencies
    yum install perl rpm rpm2cpio perl-libwww-perl
  8. Install rinse
    wget http://www.steve.org.uk/Software/rinse/rinse-2.0.1.tar.gz
    tar xvfz rinse-2.0.1.tar.gz
    cd rinse-2.0.1
    make install
  9. Now let’s create our first base filesystem.  Grab this script from GitHub.
    wget https://raw.github.com/dotcloud/docker/master/contrib/mkimage-rinse.sh
  10. Make this script executable
    chmod 775 mkimage-rinse.sh
  11. Execute the script
    ./mkimage-rinse.sh leefaus/centos centos-6
  12. Now we can run docker
    docker run leefaus/centos:6.5 cat /etc/hosts

That’s all there is to it.  Check out Docker‘s website for more documentation.

3 thoughts on “Docker 0.7 & [RedHat | CentOS] 6.5

  1. […] you followed my first post and have Docker 0.7 running locally, you will want to start creating filesystems to distribute to your other machines. […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: