CentOS下Docker安装
一、禁用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
五、注意事项:
问题1:
2014/09/21 07:41:07 Error response from daemon: Cannot start container 69ea1127e5e93ae33e0ce93f8403926d08212f5801cc3e3bfbc52d6c6c991c8a: unable to remount sys readonly: unable to mount sys as readonly max retries reached解决方法:
1、修改Docker的配置参数:把/etc/sysconfig/docker文件中的other-args更改为
other_args="--exec-driver=lxc --selinux-enabled"
2、重启docker服务:sudo service docker restart
支持一下
页:
[1]