安装环境CentOS 6.7(final)
?
准备工作(CentOS7.x无需准备工作):
禁用selinux
由于Selinux和LXC有冲突,所以需要禁用selinux。编辑/etc/selinux/config,设置两个关键变量。 ? ?
SELINUX=disabled?
?
SELINUXTYPE=targeted
配置Fedora?EPEL源
sudo yum install http://ftp.riken.jp/Linux/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
添加hop5.repo源
cd /etc/yum.repos.d?
sudo wget http://www.hop5.in/yum/el6/hop5.repo
?
正式安装:
一、安装Docker
sudo yum install docker-io
?
二、更改配置
vi?/etc/sysconfig/docker
?
三、启动docker服务
service?docker?start
?
四、将docker加入开机启动
chkconfig?docker?on
?
五、初步验证docker
?
docker -v
原文:http://superdemon.iteye.com/blog/2281086