docker-compose离线安装+升级
# docker-compose 离线安装
# docker-compose 离线安装
# 1. 下载安装包
curl -SL https://github.com/docker/compose/releases/download/v2.9.0/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose
1
# 2. 赋权
chmod +x /usr/local/bin/docker-compose
1
# 3. 新增软链接
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
1
# 3. 查看是否安装成功
docker-compose version
1
提示 Docker Compose version v2.9.0
表示 docker-compose 已安装成功
参考文档:
上次更新: 2024/05/11, 03:55:33