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

HostManager: use "docker compose" instead of "docker-compose" #383

Merged
merged 1 commit into from
Apr 25, 2024

Conversation

mhasself
Copy link
Member

@mhasself mhasself commented Apr 25, 2024

Description

When managing docker containers, instead of using a mixture of calls to docker and docker-compose CLIs, the code now exclusively uses docker (through the "v2" interface docker compose ...).

This work also removes the "--docker-compose-bin" argument, which was never fully propagated, in any case (especially "up" and "down" were always run with whatever docker-compose was in the PATH); and "inspect" was (and continues to be) run with the default docker binary in PATH.

Motivation and Context

Resolves #382

How Has This Been Tested?

Tested with a bunch of FakeDataAgents on system running Docker version 25.0.2.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

This also removes the "--docker-compose-bin" argument, which was never
fully propagated, in any case (especially "up" and "down" were
always run with whatever docker-compose was in the PATH); and "inspect"
was (and continues to be) run with the default docker binary in PATH.
@BrianJKoopman BrianJKoopman self-requested a review April 25, 2024 17:30
Copy link
Member

@BrianJKoopman BrianJKoopman left a comment

Choose a reason for hiding this comment

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

Looks great, thanks for the fast turnaround!

@BrianJKoopman BrianJKoopman merged commit e6123b7 into main Apr 25, 2024
4 checks passed
@BrianJKoopman BrianJKoopman deleted the hm-compose-v2 branch April 25, 2024 17:53
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.

Add Docker Compose v2 support to HostManager
2 participants