峡谷的老六 2023-03-22 15:23 采纳率: 33.3%
浏览 426
已结题

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条回答 默认 最新

  • 峡谷的老六 2023-03-22 16:10
    关注

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

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

报告相同问题?

问题事件

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

悬赏问题

  • ¥15 对于这个复杂问题的解释说明
  • ¥50 三种调度算法报错 有实例
  • ¥15 关于#python#的问题,请各位专家解答!
  • ¥200 询问:python实现大地主题正反算的程序设计,有偿
  • ¥15 smptlib使用465端口发送邮件失败
  • ¥200 总是报错,能帮助用python实现程序实现高斯正反算吗?有偿
  • ¥15 对于squad数据集的基于bert模型的微调
  • ¥15 为什么我运行这个网络会出现以下报错?CRNN神经网络
  • ¥20 steam下载游戏占用内存
  • ¥15 CST保存项目时失败