天天加班写代码 2023-04-12 08:08 采纳率: 82.5%
浏览 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 latex投稿显示click download
  • ¥15 请问读取环境变量文件失败是什么原因?
  • ¥15 在若依框架下实现人脸识别
  • ¥15 网络科学导论,网络控制
  • ¥100 安卓tv程序连接SQLSERVER2008问题
  • ¥15 利用Sentinel-2和Landsat8做一个水库的长时序NDVI的对比,为什么Snetinel-2计算的结果最小值特别小,而Lansat8就很平均
  • ¥15 metadata提取的PDF元数据,如何转换为一个Excel
  • ¥15 关于arduino编程toCharArray()函数的使用
  • ¥100 vc++混合CEF采用CLR方式编译报错
  • ¥15 coze 的插件输入飞书多维表格 app_token 后一直显示错误,如何解决?