天天加班写代码 2023-04-12 08:08 采纳率: 84.6%
浏览 126
已结题

运行docker-compose或者输入 docker-compose --version 报错。

运行docker-compose或者输入 docker-compose --version 报错。 不知道跟linux内核或者docker版本有没有关系。
报错信息:
Executing docker install script, commit: a8a6b338bdfedd7ddefb96fe3e7fe7d4036d945a
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.

  • 写回答

2条回答 默认 最新

  • a1767028198 2023-04-12 08:38
    关注

    之前也是在网上找文章去安装docker-compose,只有一个能正常启动,
    #安装docker

    安装yum-utils

    yum install -y yum-utils

    配置yum源

    yum-config-manager
    --add-repo
    https://download.docker.com/linux/centos/docker-ce.repo

    安装docker-ce

    yum install -y docker-ce

    设置开机启动服务

    systemctl enable docker

    启动服务

    systemctl start docker

    #Docker compose安装

    安装epel源

    yum install -y epel-release

    安装docker-compose,如果没有python3会安装python3

    yum install -y docker-compose

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

报告相同问题?

问题事件

  • 系统已结题 4月20日
  • 已采纳回答 4月12日
  • 创建了问题 4月12日

悬赏问题

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