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

Migrate docker compose from v1 to v2 #141

Open
nlflint opened this issue Mar 25, 2024 · 0 comments
Open

Migrate docker compose from v1 to v2 #141

nlflint opened this issue Mar 25, 2024 · 0 comments
Labels
status:awaiting-triage type:documentation Improvements or additions to documentation

Comments

@nlflint
Copy link

nlflint commented Mar 25, 2024

Description

The docs show a command for starting your docker compose and it uses the version 1 style docker-compose. It would be better to use v2 style docker compose, as old docker-compose is deprecated and not included when you install the latest docker tools (space vs hyphen). The current compose.yaml definition file looks completely compatible with v2, so no changes needed to that.

For more information about docker compose vs docker-compose: https://docs.docker.com/compose/faq/#what-is-the difference-between-docker-compose-and-docker-compose

What is the difference between docker compose and docker-compose

Version one of the Docker Compose command-line binary was first released in 2014. It was written in Python, and is invoked with docker-compose. Typically, Compose V1 projects include a top-level version element in the compose.yml file, with values ranging from 2.0 to 3.8, which refer to the specific file formats.

Version two of the Docker Compose command-line binary was announced in 2020, is written in Go, and is invoked with docker compose. Compose V2 ignores the version top-level element in the compose.yml file.

@nlflint nlflint added status:awaiting-triage type:documentation Improvements or additions to documentation labels Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:awaiting-triage type:documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant