Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Remove docker compose v1 #2187
Remove docker compose v1 #2187
Changes from 1 commit
c4d868d
fcbd17f
3e046e5
374abc0
88567d1
5ce4fbf
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this ever true? I think some environments allow
docker-compose
to be used even on Docker Compose v2, but the official syntax should bedocker compose
instead ofdocker-compose
. At least specified in the docs:https://docs.docker.com/compose/migrate/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We found it to be true in the wild, hence the accommodation. Could dig in history and find the PR for more detail. It was a linux distro that munged the name, don't remember which.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See https://docs.docker.com/compose/install/standalone/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A change in docker compose > 2 which caused some users complaining about it, was that it couldn't run as a standalone binary anymore. And maintainer's response was to make it executable.
So the only docker compose which could not get run as a executable was 2.0.0 and any docker compose >= 2.0.1 can get run as executable.
And some users (not sure how many) still rely on docker-compose and make
/usr/bin/docker-compose
or/usr/local/bin/docker-compose
a symlink to/usr/lib/docker/cli-plugins/docker-compose
, so they can just rundocker-compose
and notdocker compose
.So some distributions (at least one I know :) ) still create this symlink.
Discussion about this should be done or not, what (
docker compose
ordocker-compose
) should get used or best practices about this is out of scope of this repository IMHO, but keeping this so users which are still relying ondocker-compose
existence and use it instead ofdocker compose
is not something hard to maintain in future.So I advise keeping this line and reverting
s/$dc_base/docker compose/
below.P.S. I have switched to
docker compose
myself:)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fair enough, we can keep this around then 👍