1> linux安装docker:
1.1> 检查内核版本: uname -r 返回的值大于3.10即可
1.2> yum update 确保yum为最新
1.3> yum install docker 安装docker
1.4> systemctl start docker 启动docker
1.5> systemctl status docker / ps -ef|grep docker 查看docker状态
1.6> systemctl enable docker 设置docker开机启动
2> 离线包安装docker:
1> 下载rpm包 https://download.csdn.net/download/qq_17522211/10807537
2> rpm -ivh lxc-libs-1.0.9-1.el6.x86_64.rpm
rpm -ivh lua-alt-getopt-0.7.0-1.el6.noarch.rpm
rpm -ivh lua-filesystem-1.4.2-1.el6.x86_64.rpm
rpm -ivh lua-lxc-1.0.9-1.el6.x86_64.rpm
rpm -ivh lxc-1.0.9-1.el6.x86_64.rpm
rpm -ivh docker-io-1.7.1-2.el6.x86_64.rpm
rpm -ivh device-mapper-libs-1.02.117-12.el6.i686.rpm --force --nodeps
rpm -ivh device-mapper-libs-1.02.117-12.el6.x86_64.rpm --force --nodeps
3> 启动docker:
service docker start
4> 查看docker:
docker ps
5> 设置开机启动:
chkconfig docker on