安装步骤如下:
[root@localhost harbor]# curl -L https://github.com/docker/compose/releases/download/1.23.2/docker-compose-Linux-x86_64 -o /usr/bin/docker-compose
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 617 0 617 0 0 674 0 --:--:-- --:--:-- --:--:-- 674
100 11.2M 100 11.2M 0 0 277k 0 0:00:41 0:00:41 --:--:-- 195k
[root@localhost harbor]#
[root@localhost harbor]# chmod +x /usr/bin/docker-compose
[root@localhost harbor]#
[root@localhost harbor]# docker-compose --version
docker-compose version 1.23.2, build 1110ad01
[root@localhost harbor]#