先安装好Docker
Linux下安装docker-compose
官网下载: https://github.com/docker/compose/releases
下载对应版本: https://github.com/docker/compose/releases/tag/1.25.5
下载x86架构: docker-compose-Linux-x86_64
#拷贝到/usr/local/bin/目录
cp docker-compose-Linux-x86_64 /usr/local/bin/docker-compose
#可执行权限
chmod +x /usr/local/bin/docker-compose
#查看版本
docker-compose version
#显示如下
docker-compose version 1.25.5, build 8a1c60f6
Docker-py version: 4.1.0
CPython version: 3.7.5
OpenSSL version: OpenSSL 1.1.01 10 Sep 2019
网友评论