CentOS 安装 Docker Compose(curl 方式)
下载
运行此命令下载最新版本的Docker Compose:
sudo curl -L https://github.com/docker/compose/releases/download/v2.20.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
docker-compose 2.20.0 Linux 64位版本
mv docker-compose-linux-x86_64 /usr/local/bin/docker-compose
授权
对二进制文件应用可执行权限:
sudo chmod +x /usr/local/bin/docker-compose
验证
docker-compose --version
Docker Compose version v2.20.0
卸载
要卸载 Docker Compose,如果使用 curl 以下安装:
sudo rm /usr/local/bin/docker-compose
标签:docker,compose,CentOS,Compose,usr,Docker,curl From: https://www.cnblogs.com/abcdoc/p/18068564/centos-installation-docker-compose-curl-method-z