Docker 安装:
Linux内核版本一定要在3.10.0以上
安装docker
curl -sSL https://get.docker.com/ | sh
但是由于网络下载太慢,因此使用rpm安装
wget https://yum.dockerproject.org/repo/main/centos/7/Packages/docker-engine-1.13.1-1.el7.centos.x86_64.rpm
wget https://yum.dockerproject.org/repo/main/centos/7/Packages/docker-engine-selinux-1.13.1-1.el7.centos.noarch.rpm
yum localinstall -y docker-engine*
安装完毕,验证版本
docker -v
启动docker
systemctl start docker
设置开机启动
systemctl enable docker
ps –aux | grep docker
docker ps -a