环境 linux centos6.9 x64
#添加源
rpm -Uvh http://ftp.riken.jp/Linux/fedora/epel/6Server/x86_64/epel-release-6-8.noarch.rpm
#安装
yum install device-mapper-event-libs -y
yum -y install docker-io
#查看安装好的版本
docker --version
#启动后台进程|重启|状态|停止
service docker start|restart|status|stop
#查看进程
ps -ef|grep -v grep | grep docker
#设置开机启动
chkconfig docker on
chkconfig docker --list
#拉取centos虚拟机最新版本
docker pull centos:latest
#helloworld 成功
docker run centos echo 'hello world!'