Centos 7.6 Install docker compose

环境依赖安装

yum install -y yum-utils device-mapper-persistent-data lvm2 git vim net-tools

安装Docker Compose

curl -L "https://github.com/docker/compose/releases/download/1.25.5/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

备用地址 

curl -L "https://github.com/han110zheng/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

 Docker Compose对二进制文件应用可执行权限

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

如果docker-compose命令在安装后失败,请检查路径。您还可以创建到/usr/bin或路径中的任何其他目录的符号链接

ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose

查看Docker Compose版本是否安装

docker-compose --version

 

你可能感兴趣的:(Centos,Docker)