当前位置:首页 » 《随便一记》 » 正文

【云原生】docker-compose安装,解决Warning: the “docker“ command appears to already exist on this system.3的问题

21 人参与  2023年04月12日 12:57  分类 : 《随便一记》  评论

点击全文阅读


1. 对应版本

https://docs.docker.com/compose/compose-file/compose-file-v3/
参考:https://github.com/docker/compose/releases
在这里插入图片描述

2. 安装

国内源安装(不推荐):

curl -L http://get.daocloud.io/docker/compose/releases/download/v2.2.3/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-composesudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose

查看版本:

docker-compose --version

卸载

rm usr/local/bin/docker-compose

3. 问题排查

出现以下问题:

Executing docker install script, commit: 93bb55b16a5f5c8ce33e0f4784cb8af149d9590f 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

原因:从DaoCloud上下载的docker-compose有问题,改为从GitHub上官方源码仓库下载就行了:

curl -SL https://github.com/docker/compose/releases/download/v2.17.2/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose

点击全文阅读


本文链接:http://zhangshiyu.com/post/59390.html

<< 上一篇 下一篇 >>

  • 评论(0)
  • 赞助本站

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

关于我们 | 我要投稿 | 免责申明

Copyright © 2020-2022 ZhangShiYu.com Rights Reserved.豫ICP备2022013469号-1