Summary
I cannot install docker-compose-v2 via apt command for Debian bookworm.
Solution
Create the package by myself and install it by using some tools.
Steps
Install update-golang
mkdir -p /usr/local/src/github.com/udhos/update-golang
cd /usr/local/src/github.com/udhos/update-golang
git clone https://github.com/udhos/update-golang .
# Run with non-root user with "sudo"
# - Error happens otherwise
# - Latest version of Go for Debian bookworm was 1.19,
# but the further steps required Go 1.22.1(?)
# so that I installed the latest version
RELEASE=1.22.2 sudo ./update-golang.sh
Install "makdeb" command
bash -ci "$(wget -qO - 'https://shlink.makedeb.org/install')"
Create the package docker-compose_2 and install it
mkdir /usr/local/src/mpr.makedeb.org/docker-compose
cd /usr/local/src/mpr.makedeb.org/docker-compose
git clone https://mpr.makedeb.org/docker-compose .
When I was doing this, it tried to install Go 1.19 and its decencies so that I disabled the line:
PKGBUILD
======
# makedepends=('golang-go>=1.17')
and I installed only the decencies:
sudo apt install libpkgconf3 pkg-config pkgconf pkgconf-bin
and then created the package:
makedeb -si
and then installed the package:
sudo dpkg -i docker-compose_2.26.1-1_amd64.deb
and then confirm if it is installed by running docker compose
instead of docker-compose
:
$ docker compose version
Docker Compose version v2.26.1
Top comments (0)