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

Use correct command for docker compose #23

Merged
merged 1 commit into from
Aug 20, 2024
Merged

Use correct command for docker compose #23

merged 1 commit into from
Aug 20, 2024

Conversation

nicolasff
Copy link
Contributor

@nicolasff nicolasff commented Aug 19, 2024

docker-compose (V1) has been deprecated since July 2023, and Compose V2 is its replacement. Since V2 was announced, it was always available as docker compose rather than the single command docker-compose. Modern installations of Docker no longer even ship with docker-compose itself.


📑 Context

See Docker's page titled "Migrate to Compose V2" which explains that the single command docker-compose with a hyphen was part of V1 and is now deprecated. Users should instead use docker compose, and the page mentions that this process started a while back:

From July 2023 Compose V1 stopped receiving updates. It’s also no longer available in new releases of Docker Desktop.

I can confirm that I was unable to follow the README to start 13ft, since docker-compose is not available on my machine:

$ docker-compose
zsh: command not found: docker-compose

✅ Checks

  • I was able to run the service using docker compose up just as expected.

ℹ Additional Information

A possible improvement here would be to also mention docker-compose as a fallback if anyone is running a very old version of Docker, but then you'd have to decide also how long to keep this mention in the README for… overall this doesn't really seem worth it. docker-compose has been deprecated for a while and is well on its way out.

The new line added after the list is to make sure it doesn't bring the one right after next to it.

`docker-compose` (V1) has been deprecated since July 2023, and Compose
V2 is its replacement. Since V2 was announced, it was always available
as `docker compose` rather than the single command `docker-compose`.
Modern installations of Docker no longer even ship with `docker-compose`
itself.
@wasi-master
Copy link
Owner

Thank you, and yeah I would rather keep docker compose. If someone for some reason uses a older version that's on them.

@wasi-master wasi-master reopened this Aug 20, 2024
@wasi-master wasi-master merged commit d6bee7b into wasi-master:main Aug 20, 2024
2 checks passed
@wasi-master
Copy link
Owner

Sorry, mistook the close with comment button for merge with comment 😅

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