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
  2. Install CentOS 6.5 with all of the defaults
  3. Install the EPEL Repository
    rpm -Uvh
  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
    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.
  10. Make this script executable
    chmod 775
  11. Execute the script
    ./ 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: Logo

You are commenting using your 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: