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

docker-compose Version is unspported #20

Closed
superiorlu opened this issue Jan 31, 2024 · 0 comments · Fixed by #21
Closed

docker-compose Version is unspported #20

superiorlu opened this issue Jan 31, 2024 · 0 comments · Fixed by #21

Comments

@superiorlu
Copy link
Contributor

Describe the bug
A clear and concise description of what the bug is.
when execute docker-compose up, has some error:

ERROR: Version in "./docker-compose.yml" is unsupported. You might be seeing this error because you're using the wrong Compose file version. Either specify a supported version (e.g "2.2" or "3.3") and place your service definitions under the `services` key, or omit the `version` key and place your service definitions at the root of the file to use version 1.
For more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/

To Reproduce
Steps to reproduce the behavior:

  1. cd docker
  2. docker-compose up

Expected behavior
A clear and concise description of what you expected to happen.

# docker-compose.yml
wrong
version: "v0.1.1" 

right
version: "3.3"

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context
Add any other context about the problem here.

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 a pull request may close this issue.

1 participant