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

Don't allow docker-compose v2 to be used #3086

Merged
merged 2 commits into from Jul 4, 2021

Conversation

rfay
Copy link
Member

@rfay rfay commented Jul 3, 2021

The Problem/Issue/Bug:

Currently there are so many bugs on docker-compose v2 beta that it's unusable for most ddev purposes.

This PR checks for compose v2 and refuses to use it, and gives instruction.

For a current list of incompatibilities and problems, see #3083 (comment)

How this PR Solves The Problem:

Improve the version constraint to disallow v2
Add an extra error message explaining about v2

Manual Testing Instructions:

With compose v2 enabled, ddev start. It should fail, explaining why.
Then docker-compose disable-v2 and ddev start. It should work.

Release/Deployment notes:

Hopefully we can revert this when compose v2 is fully functional and compatible.

@gitpod-io
Copy link

gitpod-io bot commented Jul 3, 2021

@rfay
Copy link
Member Author

rfay commented Jul 4, 2021

Tested this on macOS, Windows 11, WSL2, and Ubuntu 20.04 and it seems to work correctly.

@rfay rfay merged commit a051889 into ddev:master Jul 4, 2021
@rfay rfay deleted the 20210703_dont_allow_docker_compose_2 branch July 4, 2021 23:25
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

Successfully merging this pull request may close these issues.

None yet

1 participant