Linux安装docker-compose
1.下载安装包
根据机器的架构选择具体的版本,更多的请参考官网 https://github.com/docker/compose/releases
架构 |
下载地址 |
X86 |
https://github.com/docker/compose/releases/download/v2.4.1/docker-compose-linux-x86_64 |
aarch64 |
https://github.com/docker/compose/releases/download/v2.4.1/docker-compose-linux-aarch64 |
armv7 |
https://github.com/docker/compose/releases/download/v2.4.1/docker-compose-linux-armv7 |
Linux可使用uname -a 命令查看机器架构
2. 安装docker-compose
前置要求:安装docker-compse前服务器上必须先安装好docker。
①下载对应安装包并上传到服务器
②cp docker-compose-linux-x86_64 /usr/local/bin/docker-compose
③增加可执行权限:chmod +x /usr/local/bin/docker-compose
④查看版本:docker-compose version