# 国内镜像下载地址 curl -L https://get.daocloud.io/docker/compose/releases/download/v2.1.1/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose # 设置权限 chmod +x /usr/local/bin/docker-compose # 将 /usr/local/bin/ 加入到环境变量 echo 'export PATH="$PATH:/usr/local/bin/"' >> /etc/profile && source /etc/profile # 检查版本、测试是否安装成功 docker-compose version