# To install, run the following command as root:
curl -sSL -O https://get.docker.com/builds/Linux/x86_64/docker-1.4.1 && chmod +x docker-1.4.1 && sudo mv docker-1.4.1 /usr/local/bin/docker
# Then start docker in daemon mode:
sudo /usr/local/bin/docker -d Docker run container error
Note: If you get a Cannot start container error mentioning SELinux or permission denied, you may need to update the SELinux policies. This can be done using
sudo yum upgrade selinux-policy
and then rebooting.
selinux 原因。
1.selinux模式为permissive模式 setenforce 0
2.容器启动,添加--privileged=true
3.关闭selinux
vim /etc/sysconfig/selinux
SELINUX=disabled