日本免费高清视频-国产福利视频导航-黄色在线播放国产-天天操天天操天天操天天操|www.shdianci.com

學無先后,達者為師

網站首頁 編程語言 正文

【云原生】docker-compose安裝,解決Warning: the “docker“ command appears to already exist on this system.3的問題

作者:別出BUG求求了 更新時間: 2023-11-13 編程語言

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-compose
sudo 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

原文鏈接:https://blog.csdn.net/weixin_39589455/article/details/129867945

  • 上一篇:沒有了
  • 下一篇:沒有了
欄目分類
最近更新