First of all. Because Docker implementations require some Linux components to support itself and kernel features. Make sure that the CentOS version number is greater than 6, and that the kernel version number is greater than 2.6.32-431. You can easily upgrade CENTOS6 to the latest version number.
sudo yum upgrade
Then install Cgroup
sudo yum install libcgroupservice cgconfig start #启动croup服务lssubsys-am
assuming a successful installation, the last command lssubsys-am displays all of the subsystem's mount points
Source Code mode installation LXC
sudo yum install gcc makewget http://sourceforge.net/projects/lxc/files/latest/download?SOURCE=FILESTAR-XF LXC-0.9.0.TAR.GZCD lxc-0.9.0./configure--disable-capabilitiesmakesudo make Installlxc-checkconfig
Assume a successful installation. The last command Lxc-checkconfig will successfully show those features that the kernel supports LXC
Finally install Docker,docker on CentOS installation using direct download Bin Package execution method
CD ~wget HTTPS://GET.DOCKER.IO/BUILDS/LINUX/X86_64/DOCKER-LATEST.TGZTAR-XF Docker-latest.tgzusr/local/bin/docker- D
So docker the service starts, and there will be time to deploy the anti-Docker virtual container
Copyright notice: This article Bo Master original articles, blogs, without consent may not be reproduced.
Easy CentOS Configuration Docker repair