释放双眼,带上耳机,听听看~!
1. 下载docker-compose
注意版本,最好到https://github.com/docker/compose 查看最新的版本
1
2
3 1sudo curl -L "https://github.com/docker/compose/releases/download/1.23.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
2
3
如果下载慢更改下载源
1
2 1sudo curl -L "https://get.daocloud.io/docker/compose/releases/download/1.23.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
2
2. 添加可执行权限
1
2
3 1sudo chmod +x /usr/local/bin/docker-compose
2
3
3. 查看docker-compose版本
1
2
3 1docker-compose version
2
3