Been playing a little with Dockerā†— this afternoon, while its something I have been aware for a while its not something I have really looked into.

As I prefer working with CentOS rather than Ubuntu its taken me a while to get the motivation to do any more than some reading, however as the latest version now runs on RHE compatible

Docker 1/4
yum install http://www.mirrorservice.org/sites/dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
yum -y install docker-io
service docker start
chkconfig docker on

Once the services are installed pull down some images to test with;

Docker 2/4
docker pull ubuntu
docker pull centos
docker run centos /bin/echo hello world

the last command launches a CentOS container, runs the echo and then exits. To do something more interesting;

Docker 3/4
CONTAINER_ID=$(sudo docker run -d ubuntu /bin/sh -c ā€œwhile true; do echo hello world; sleep 1; doneā€)
docker ps
docker attach -sig-proxy=false $CONTAINER_ID
docker logs $CONTAINER_ID
docker stop $CONTAINER_ID

Once you have some containers running the following commands are useful;

Docker 4/4
docker info # Get some information on the installation
docker images # List the available images
docker ps # Whats running?
docker search [TERM] # Search for images

This is probably one of the better introductions to Docker I have seen;

and some further reading;