docker-compose安装

创建目录

[root@localhost tools]# mkdir /root/tools/docker-compose

下载

百度云下载地址:链接:https://pan.baidu.com/s/1f4L1Y8mAfU0MI0EiKD9_mA?pwd=klnf
提取码:klnf
[root@localhost tools]# wget -c --tries=40 https://github.com/docker/compose/releases/download/v2.2.2/docker-compose-linux-x86_64 -O /root/tools/docker-compose/docker-compose

拷贝文件到执行目录

[root@localhost docker-compose]# cp docker-compose /usr/local/bin

给与文件执行权限

[root@localhost docker-compose]# chmod +x /usr/local/bin/docker-compose

验证

[root@localhost ~]# docker-compose  -v
Docker Compose version v2.2.2
posted @ 2022-01-21 14:12  小小青年  阅读(77)  评论(0编辑  收藏  举报