1
2
3
4
5
yum install docker #安装

service docker start #启动
chkconfig docker on #设置启动项

1
2
3
curl -L https://github.com/docker/compose/releases/download/1.26.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose 

chmod +x /usr/local/bin/docker-compose