我使用yum安装了docker,然后又安装了docker-compose(从daocloud上下载的docker-compose),我执行docker-compose -v的命令,总是给我自动安装docker,如下:
[root@localhost app]# docker -v
Docker version 23.0.1, build a5ee5b1
[root@localhost app]# curl -L https://get.daocloud.io/docker/compose/releases/download/v1.27.2/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 145 100 145 0 0 723 0 --:--:-- --:--:-- --:--:-- 725
100 18906 100 18906 0 0 32672 0 --:--:-- --:--:-- --:--:-- 59829
[root@localhost app]# chmod +x /usr/local/bin/docker-compose
[root@localhost app]# docker-compose -v
# Executing docker install script, commit: 66474034547a96caa0a25be56051ff8b726a1b28
Warning: the "docker" command appears to already exist on this system.
If you already have Docker installed, this script can cause trouble, which is
why we're displaying this warning and provide the opportunity to cancel the
installation.
If you installed the current Docker package using this script and are using it
again to update Docker, you can safely ignore this message.
You may press Ctrl+C now to abort this script.
+ sleep 20
^C