1、安装docker
[root@localhost /]# yum -y install docker-io
2、更改配置文件
[root@localhost /]# vi /etc/sysconfig/docker
other-args列更改为:other_args="--exec-driver=lxc --selinux-enabled"
3、启动docker服务
[root@localhost /]# service docker start
Starting cgconfig service: [ OK ]
Starting docker: [ OK ]
4、将docker加入开机启动
[root@localhost /]# chkconfig docker on