当前位置: 首页 > 知识库问答 >
问题:

后端 - debian12 如何使用 apt 一键安装 docker-compose V2 版本?

柳镜
2024-03-01

debian12 如何使用 apt 一键安装 docker-compose V2 版本?

仓库里面自带的,还是 python 写的 v1 版本,我要安装 golang 写的 v2 版本

ops@es-redis-20240228:~/opt/redis$ sudo apt install docker-composeReading package lists... DoneBuilding dependency tree... DoneReading state information... DoneThe following packages were automatically installed and are no longer required:  docker-buildx-plugin docker-compose-plugin libltdl7 libslirp0 pigz slirp4netnsUse 'sudo apt autoremove' to remove them.The following additional packages will be installed:  binutils binutils-common binutils-x86-64-linux-gnu cgroupfs-mount containerd criu docker.io libbinutils libctf-nobfd0 libctf0 libgprofng0 libintl-perl libintl-xs-perl  libjansson4 libmodule-find-perl libmodule-scandeps-perl libnet1 libnftables1 libnl-3-200 libproc-processtable-perl libprotobuf32 libsort-naturally-perl libterm-readkey-perl  needrestart python3-attr python3-distro python3-distutils python3-docker python3-dockerpty python3-docopt python3-dotenv python3-json-pointer python3-jsonschema python3-lib2to3  python3-protobuf python3-pyrsistent python3-rfc3987 python3-texttable python3-uritemplate python3-webcolors python3-websocket runc tiniSuggested packages:  binutils-doc containernetworking-plugins docker-doc aufs-tools btrfs-progs debootstrap rinse rootlesskit xfsprogs zfs-fuse | zfsutils-linux needrestart-session | libnotify-bin  iucode-tool python-attr-doc python-jsonschema-docThe following packages will be REMOVED:  containerd.io docker-ce docker-ce-cli docker-ce-rootless-extrasThe following NEW packages will be installed:  binutils binutils-common binutils-x86-64-linux-gnu cgroupfs-mount containerd criu docker-compose docker.io libbinutils libctf-nobfd0 libctf0 libgprofng0 libintl-perl  libintl-xs-perl libjansson4 libmodule-find-perl libmodule-scandeps-perl libnet1 libnftables1 libnl-3-200 libproc-processtable-perl libprotobuf32 libsort-naturally-perl  libterm-readkey-perl needrestart python3-attr python3-distro python3-distutils python3-docker python3-dockerpty python3-docopt python3-dotenv python3-json-pointer  python3-jsonschema python3-lib2to3 python3-protobuf python3-pyrsistent python3-rfc3987 python3-texttable python3-uritemplate python3-webcolors python3-websocket runc tini0 upgraded, 44 newly installed, 4 to remove and 2 not upgraded.Need to get 75.6 MB of archives.After this operation, 32.6 MB of additional disk space will be used.Do you want to continue? [Y/n] yGet:1 file:/etc/apt/mirrors/debian.list Mirrorlist [30 B]Get:2 https://deb.debian.org/debian bookworm/main amd64 runc amd64 1.1.5+ds1-1+deb12u1 [2710 kB]Get:3 https://deb.debian.org/debian bookworm/main amd64 containerd amd64 1.6.20~ds1-1+b1 [25.9 MB]Get:4 https://deb.debian.org/debian bookworm/main amd64 tini amd64 0.19.0-1 [255 kB]Get:5 https://deb.debian.org/debian bookworm/main amd64 docker.io amd64 20.10.24+dfsg1-1+b3 [36.2 MB]Get:6 https://deb.debian.org/debian bookworm/main amd64 binutils-common amd64 2.40-2 [2487 kB]Get:7 https://deb.debian.org/debian bookworm/main amd64 libbinutils amd64 2.40-2 [572 kB]Get:8 https://deb.debian.org/debian bookworm/main amd64 libctf-nobfd0 amd64 2.40-2 [153 kB]Get:9 https://deb.debian.org/debian bookworm/main amd64 libctf0 amd64 2.40-2 [89.8 kB]Get:10 https://deb.debian.org/debian bookworm/main amd64 libgprofng0 amd64 2.40-2 [812 kB]

共有1个答案

柳向明
2024-03-01

debian里面,添加了docker的apt仓库后,会有这个包“docker-compose-plugin”。
image.png
image.png

 类似资料:
  • 我用yum安装报: 网上的答案已经试过,都没有解决我的问题,请问大佬们如何解决安装它? 我想使用apt,安装libglib2.0-0, 如果不安装apt,怎么安装libglib2.0-0 主要是我们解决这个问题https://segmentfault.com/q/1010000044195764

  • 问题内容: 如何安装特定版本的Docker(如)? 我在Docker官方文档中找不到任何文档。为Ubuntu引用此链接。 请按照以下说明安装docker版本: 另外,请按照以下说明安装最新版本的docker : 如何安装特定版本的? 问题答案: 从这个github得到了答案。 以上提交的摘要:- 如果权限问题,则用作: 奖金提示: 不知道哪个版本?然后点击后为: 查看可用的Docker版本列表。

  • 问题内容: 关于Python我是一个新手,因此我先乞求:)。就是说,我正在尝试制作一个脚本,其中包括安装一些Linux软件包。首先,我尝试按照此处说明使用subopen 。虽然这最终可以起作用,但我偶然发现了python-apt API,并且由于我不是狂热者或不愿意重新发明轮子,所以我决定尝试一下。 尝试查找有关使用python- apt安装软件包的示例/教程时,问题来了。搜索文档后,我发现Pac

  • 我想在我的Rasberry pi 4上安装libncurses5-dev。但是404错误后,我尝试了apt-get更新升级,还是没有修复,怎么办? 这是" uname -a "告诉我的信息。 Linux raspberrypi 4.19.57-v7l#1244 SMP周四,等等,等等armv7l GNU/Linux 还有sources.list deb http://raspbian.raspbe

  • 问题内容: 我默认使用python2.6的ubuntu 10.04。我已经安装了python2.7。 当我想安装python软件包时 它被安装到python2.6。我如何才能将软件包安装到python2.7?有什么选择吗? 我已经看过这个,但我找不到我的OS这样的目录。我考虑过使用,但并非所有软件包都受支持。例如。 我对将python2.7与绑定更感兴趣。 问题答案: Python具有自己的软件包