centOS7 安装 Docker

(1)安装docker

yum install docker-io

(2)启动docker(centOS7是systemctl,6是service)

systemctl start docker

(3)讲docker设置为自启动

systemctl enable docker