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

Fix PS command #192

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Fix PS command #192

wants to merge 2 commits into from

Conversation

danbulant
Copy link

@danbulant danbulant commented Nov 30, 2021

When using docker-compose, it always skips the first container (because indexes are zero based).

The other commit is that docker-compose (at least v2.0.1) also sends the name of the container and the service name, which the current parser doesn't account for.

@danbulant danbulant changed the title Fix skipping first container in ps command Fix PS command Nov 30, 2021
@Steveb-p
Copy link
Contributor

As shown by the tests, this will break docker-compose 1.x usage. We will need to decide on an approach for this.

Probably a configuration option?

I don't really feel we can split codebase into two separate versions, as that would introduce more problems than solve (since there is no way of detecting which docker-compose version is installed during package installation).

@AlexZeitler
Copy link
Contributor

I think providing something like a majorVersion option is the most appropriate way to solve this.

pshenmic added a commit to dashpay/docker-compose that referenced this pull request Jun 6, 2022
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.

3 participants