官网有写
前提,你有安装centos虚拟机
- 卸载docker,
- ··
安装docker-compose,版本查看官网的版本,这里版本为1.16.1
- 下载
$ sudo curl -L https://github.com/docker/compose/releases/download/1.16.1/docker-compose-
uname -s
-uname -m
-o /usr/local/bin/docker-compose
- 添加可执行权限
sudo chmod +x /usr/local/bin/docker-compose
- 检查是否安装好
docker-compose —version