安装
############## centos6 linux kernel 2.6
rpm -ivh http://dl.Fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
#rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
yum -y install docker-io lvm2 lvm2-devel
rpm -qa | grep docker
service docker start
#如果没启动成功 service docker status >> docker dead but pid file exists
yum-config-manager --enable public_ol6_latest
yum install device-mapper-event-libs
创建容器
#docker pull centos
#docker run -it -d --name centos centos
#进入docker容器
docker exec -it centos /bin/bash