Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempting to install non-released Docker-Compose version #1297

Open
cguess opened this issue Mar 13, 2025 · 1 comment
Open

Attempting to install non-released Docker-Compose version #1297

cguess opened this issue Mar 13, 2025 · 1 comment
Assignees

Comments

@cguess
Copy link

cguess commented Mar 13, 2025

When building this I am getting an error (below) that the image is trying to install Docker-Compose v 2.34.0. The problem is that 2.34.0 hasn't been released yet (as of the filing of this issue) here. v2.34.0 has been tagged here but the release hasn't happened yet.

I've tried to dig into why it's only looking at tags and not releases, and I think it's somewhere around

docker_compose_url="https://github.com/docker/compose"
but I don't know enough to really dig into the logic.

It'd make sense to instead of checking for tags, to check for releases, otherwise, my image is bricked until the release is created.

[15:08:50] info #20 [rails-app dev_containers_target_stage 6/9] RUN cd /tmp/build-features/2 && chmod +x ./devcontainer-features-install.sh && ./devcontainer-features-install.sh
[15:08:50] info #20 0.104 ===========================================================================
[15:08:50] info #20 0.104 Feature       : Docker (docker-outside-of-docker)
[15:08:50] info #20 0.104 Description   : Re-use the host docker socket, adding the Docker CLI to a container. Feature invokes a script to enable using a forwarded Docker socket within a container to run Docker commands.
[15:08:50] info #20 0.104 Id            : ghcr.io/devcontainers/features/docker-outside-of-docker
[15:08:50] info #20 0.104 Version       : 1.6.0
[15:08:50] info #20 0.104 Documentation : https://github.com/devcontainers/features/tree/main/src/docker-outside-of-docker
[15:08:50] info #20 0.104 Options       :
[15:08:50] info #20 0.104     DOCKERDASHCOMPOSEVERSION="v2"
[15:08:50] info #20 0.104     INSTALLDOCKERBUILDX="true"
[15:08:50] info #20 0.104     INSTALLDOCKERCOMPOSESWITCH="true"
[15:08:50] info #20 0.104     MOBY="true"
[15:08:50] info #20 0.104     MOBYBUILDXVERSION="latest"
[15:08:50] info #20 0.104     VERSION="latest"
[15:08:50] info #20 0.104 Environment   :
[15:08:51] info #20 0.104 SHLVL=0
[15:08:51] info #20 0.104 HOME=/root
[15:08:51] info #20 0.104 OLDPWD=/
[15:08:51] info #20 0.104 _CONTAINER_USER=root
[15:08:51] info #20 0.104 DOCKERDASHCOMPOSEVERSION=v2
[15:08:51] info #20 0.104 MOBYBUILDXVERSION=latest
[15:08:51] info #20 0.104 LOGNAME=root
[15:08:51] info #20 0.104 _CONTAINER_USER_HOME=/root
[15:08:51] info #20 0.104 VERSION=latest
[15:08:51] info #20 0.104 _=/tmp/build-features/2/./devcontainer-features-install.sh
[15:08:51] info #20 0.104 PATH=/usr/local/share/rbenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[15:08:51] info #20 0.104 MOBY=true
[15:08:51] info #20 0.104 INSTALLDOCKERCOMPOSESWITCH=true
[15:08:51] info #20 0.104 INSTALLDOCKERBUILDX=true
[15:08:51] info #20 0.104 _REMOTE_USER=vscode
[15:08:51] info #20 0.104 PWD=/tmp/build-features/2
[15:08:51] info #20 0.104 _REMOTE_USER_HOME=/home/vscode
[15:08:51] info #20 0.104 ===========================================================================
[15:08:51] info #20 0.112 Distro codename  'bookworm'  matched filter  'bookworm buster bullseye bionic focal jammy noble'
[15:08:51] info #20 0.301 Get:1 http://deb.debian.org/debian bookworm InRelease [151 kB]
[15:08:51] info #20 0.360 Get:2 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
[15:08:51] info #20 0.383 Get:3 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
[15:08:51] info #20 0.405 Get:4 http://deb.debian.org/debian bookworm/main arm64 Packages [8693 kB]
[15:08:51] info #20 0.526 Get:5 https://packages.microsoft.com/repos/microsoft-debian-bookworm-prod bookworm InRelease [3617 B]
[15:08:51] info #20 0.589 Get:6 http://deb.debian.org/debian bookworm-updates/main arm64 Packages [13.3 kB]
[15:08:51] info #20 0.589 Get:7 http://deb.debian.org/debian-security bookworm-security/main arm64 Packages [242 kB]
[15:08:51] info #20 0.739 Get:8 https://packages.microsoft.com/repos/microsoft-debian-bookworm-prod bookworm/main all Packages [576 B]
[15:08:51] info #20 0.846 Get:9 https://packages.microsoft.com/repos/microsoft-debian-bookworm-prod bookworm/main arm64 Packages [21.0 kB]
[15:08:52] info #20 1.268 Fetched 9227 kB in 1s (9115 kB/s)
[15:08:52] info #20 1.268 Reading package lists...
[15:08:52] info #20 1.563 Reading package lists...
[15:08:52] info #20 1.847 Building dependency tree...
[15:08:52] info #20 1.920 Reading state information...
[15:08:52] info #20 2.000 Recommended packages:
[15:08:52] info #20 2.000   pigz
[15:08:52] info #20 2.013 The following NEW packages will be installed:
[15:08:52] info #20 2.013   moby-buildx moby-cli
[15:08:52] info #20 2.105 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
[15:08:52] info #20 2.105 Need to get 56.0 MB of archives.
[15:08:52] info #20 2.105 After this operation, 134 MB of additional disk space will be used.
[15:08:52] info #20 2.105 Get:1 https://packages.microsoft.com/repos/microsoft-debian-bookworm-prod bookworm/main arm64 moby-buildx arm64 0.21.2-debian12u1 [39.4 MB]
[15:08:53] info #20 2.691 Get:2 https://packages.microsoft.com/repos/microsoft-debian-bookworm-prod bookworm/main arm64 moby-cli arm64 27.5.1-debian12u1 [16.6 MB]
[15:08:54] info #20 3.297 Fetched 56.0 MB in 1s (60.9 MB/s)
[15:08:54] info #20 3.304 Selecting previously unselected package moby-buildx.
(Reading database ... 30553 files and directories currently installed.)
[15:08:54] info #20 3.310 Preparing to unpack .../moby-buildx_0.21.2-debian12u1_arm64.deb ...
[15:08:54] info #20 3.311 Unpacking moby-buildx (0.21.2-debian12u1) ...
[15:08:54] info #20 3.627 Selecting previously unselected package moby-cli.
[15:08:54] info #20 3.628 Preparing to unpack .../moby-cli_27.5.1-debian12u1_arm64.deb ...
[15:08:54] info #20 3.629 Unpacking moby-cli (27.5.1-debian12u1) ...
[15:08:54] info #20 3.778 Setting up moby-buildx (0.21.2-debian12u1) ...
[15:08:54] info #20 3.781 Setting up moby-cli (27.5.1-debian12u1) ...
[15:08:54] info #20 3.798 Adding group `docker' (GID 102) ...
[15:08:54] info #20 3.805 Done.
[15:08:54] info #20 3.816 Reading package lists...
[15:08:55] info #20 4.104 Building dependency tree...
[15:08:55] info #20 4.179 Reading state information...
[15:08:55] info #20 4.267 The following NEW packages will be installed:
[15:08:55] info #20 4.267   moby-compose
[15:08:55] info #20 4.372 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
[15:08:55] info #20 4.372 Need to get 18.8 MB of archives.
[15:08:55] info #20 4.372 After this operation, 72.5 MB of additional disk space will be used.
[15:08:55] info #20 4.372 Get:1 https://packages.microsoft.com/repos/microsoft-debian-bookworm-prod bookworm/main arm64 moby-compose arm64 2.33.1-debian12u1 [18.8 MB]
[15:08:55] info #20 5.079 Fetched 18.8 MB in 0s (42.3 MB/s)
[15:08:56] info #20 5.091 Selecting previously unselected package moby-compose.
(Reading database ... 30567 files and directories currently installed.)
[15:08:56] info #20 5.098 Preparing to unpack .../moby-compose_2.33.1-debian12u1_arm64.deb ...
[15:08:56] info #20 5.099 Unpacking moby-compose (2.33.1-debian12u1) ...
[15:08:56] info #20 5.340 Setting up moby-compose (2.33.1-debian12u1) ...
[15:08:56] info #20 5.479 compose_version=2.34.0
[15:08:56] info #20 5.479 (*) Installing docker-compose 2.34.0...
[15:08:56] info #20 5.647 curl: (22) The requested URL returned error: 404
[15:08:56] info #20 5.649 Error: Failed to install docker-compose v2.34.0
[15:08:56] info #20 5.650 chmod: cannot access '/usr/local/bin/docker-compose': No such file or directory
[15:08:56] info #20 5.650 ERROR: Feature "Docker (docker-outside-of-docker)" (ghcr.io/devcontainers/features/docker-outside-of-docker) failed to install! Look at the documentation at ${documentation} for help troubleshooting this error.
[15:08:56] info #20 ERROR: process "/bin/zsh -c cd /tmp/build-features/2 && chmod +x ./devcontainer-features-install.sh && ./devcontainer-features-install.sh" did not complete successfully: exit code: 1
[15:08:56] info ------
[15:08:56] info > [rails-app dev_containers_target_stage 6/9] RUN cd /tmp/build-features/2 && chmod +x ./devcontainer-features-install.sh && ./devcontainer-features-install.sh:
(Reading database ... 30567 files and directories currently installed.)
[15:08:56] info 5.098 Preparing to unpack .../moby-compose_2.33.1-debian12u1_arm64.deb ...
[15:08:56] info 5.099 Unpacking moby-compose (2.33.1-debian12u1) ...
[15:08:56] info 5.340 Setting up moby-compose (2.33.1-debian12u1) ...
[15:08:56] info 5.479 compose_version=2.34.0
[15:08:56] info 5.479 (*) Installing docker-compose 2.34.0...
[15:08:56] info 5.647 curl: (22) The requested URL returned error: 404
[15:08:56] info 5.649 Error: Failed to install docker-compose v2.34.0
[15:08:56] info 5.650 chmod: cannot access '/usr/local/bin/docker-compose': No such file or directory
[15:08:56] info 5.650 ERROR: Feature "Docker (docker-outside-of-docker)" (ghcr.io/devcontainers/features/docker-outside-of-docker) failed to install! Look at the documentation at ${documentation} for help troubleshooting this error.
[15:08:56] info ------
@cguess
Copy link
Author

cguess commented Mar 13, 2025

I just realized that #1241 is still open regarding this same problem and proposes the same solution. Is there any chance this could be fixed?

For those who find this, the answer is to add (note the newest released version from here

 "ghcr.io/devcontainers/features/docker-outside-of-docker:1": {
            "dockerDashComposeVersion": "v2.33.1"
        }, 

To the features section of your devcontainer.json file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants