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

question: how to specify docker compose version? #243

Open
sarisia opened this issue May 9, 2023 · 2 comments
Open

question: how to specify docker compose version? #243

sarisia opened this issue May 9, 2023 · 2 comments

Comments

@sarisia
Copy link

sarisia commented May 9, 2023

Running @devcontainers/ci on GitHub Actions hosted runner ubuntu-22.04 (which has both compose v1 and v2) uses docker compose v1 and building image for compose.yaml (which v1 does not support) fails.

Are there any way to specify docker compose version the action uses?

@stuartleeks
Copy link
Collaborator

The action uses the devcontainer CLI for the underlying dev container interactions, so it's probably worth raising an issue on https://github.com/devcontainers/cli to see whether it is possible to control the docker compose version when using the CLI

@sarisia
Copy link
Author

sarisia commented May 15, 2023

devcontainer CLI has --docker-compose-path option and confirmed it's working.

(actions runner ubuntu-latest)

// compose v1
$ devcontainer build --workspace-folder . --docker-compose-path /usr/local/bin/docker-compose

// compose v2
$ devcontainer build --workspace-folder . --docker-compose-path /usr/libexec/docker/cli-plugins/docker-compose

Adding the --docker-compose-path or equivalent options (or, just args for support arbitrary usecases) to the action may help.

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