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

docker-outside-of-docker: cannot install docker-compose #1241

Open
hlecnt opened this issue Jan 15, 2025 · 4 comments
Open

docker-outside-of-docker: cannot install docker-compose #1241

hlecnt opened this issue Jan 15, 2025 · 4 comments

Comments

@hlecnt
Copy link

hlecnt commented Jan 15, 2025

Hello,

I'm facing the issue just now. This is due to an incoming release of compose just now: the tag has been created but not the related release (github release) yet.

Thus the install.sh script found a tag version but without a corresponding release => it can't download the asset (not yet release) then fails.

The solution for now is to specify an already existing version like this:

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

Perhaps, a more robust way to handle this would be to to look at the available releases instead of tags (if allowed by the github API).

@bryanlittlefield
Copy link

Our team is also running into issues creating a new Codespace's using docker-outside-of-docker. We saw this same issue back in October of last year and we were able to patch it by using the method @hlecnt mentioned above ✅

Here are the errors we are getting back from the Creation Log:

9.841 compose_version=2.32.4
9.841 (*) Installing docker-compose 2.32.4...
9.929 curl: (22) The requested URL returned error: 404
9.931 Error: Failed to install docker-compose v2.32.4
9.932 chmod: cannot access '/usr/local/bin/docker-compose': No such file or directory
9.932 ERROR: Feature "Docker (docker-outside-of-docker)" (ghcr.io/devcontainers/features/docker-outside-of-docker) failed to install! Look at the documentation at ********/devcontainers/features/tree/main/src/docker-outside-of-docker for help troubleshooting this error.

@BenjaminBenetti
Copy link

Also facing this issue. Thanks @hlecnt you saved my bacon 🥓 with your workaround 😄

@xec-abailey
Copy link

Yep we are hitting this, the workaround above works fine. Thanks @hlecnt

@gauravsaini04
Copy link
Contributor

Hi,
A PR has been raised for correcting this scenario where upon failure to install the latest release, it chooses a previous version to install instead of the latest..

PR #1252

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

5 participants