更新源
yum update -y
yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel
安装docker
yum -y install docker-io
启动docker
service docker start
开机启动
chkconfig docker on
安装docker-compose
curl -L https://github.com/docker/compose/releases/download/1.23.0-rc3/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
赋予可执行
chmod +x /usr/local/bin/docker-compose
查看版本信息
docker-compose --version