Dustin.Hoffman 2023-03-22 15:23 采纳率: 33.3%
浏览 429
已结题

docker-compose总是自动安装docker

我使用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

  • 写回答

2条回答 默认 最新

  • Dustin.Hoffman 2023-03-22 16:10
    关注

    问题已解决,从DaoCloud上下载的docker-compose的问题,改为从GitHub上官方源码仓库下载就行了。

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

问题事件

  • 系统已结题 3月30日
  • 已采纳回答 3月22日
  • 创建了问题 3月22日