Skip to content

Conversation

youssyml
Copy link

@youssyml youssyml commented May 28, 2025

🤓 Why

Newer versions of Docker use docker compose instead of the legacy docker-compose command. The current mwaa-local-env script only supports the legacy command, causing compatibility issues for users with newer Docker installations.

💪 How

Added automatic detection of available docker compose command:

  • Checks for docker-compose (legacy standalone tool)
  • Falls back to docker compose (modern Docker CLI plugin)
  • Uses the detected command throughout the script
  • Updated validation to show which command is being used

🧪 Tests

  • I tested it with my local setup (using docker compose). Could you (dear reviewer) test it with your setup if it's docker-compose compatible ?

🤖 Generated with Claude Code

Detects whether docker-compose (legacy) or docker compose (modern Docker CLI)
is available and uses the appropriate command automatically.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
Copy link

@florian-ernst-alan florian-ernst-alan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, however I think a much simpler approach is to simply switch everything to docker compose (as it's been available for years, coexisting with docker-compose).

@youssyml youssyml merged commit 753e649 into main May 28, 2025
2 checks passed
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.

2 participants