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 config doesn't output version #9907
Comments
The top-level version element has been deprecated by See https://docs.docker.com/compose/compose-file/#version-top-level-element for details. |
@milas ok |
@milas Dirty hack is
|
@AlexNik |
Description
I have used
docker-compose config
command for workaround this issue moby/moby#29133 (comment)I want to rewrite my code to use
docker compose
command instead but the output does not contains theversion
of file like when I usedocker-compose
command anddocker stack deploy
can't proccess it:unsupported Compose file version: 1.0
Steps to reproduce the issue:
example.yml
docker-compose
output (version 1.29.2):docker compose
output (version 2.11.2):Describe the results you expected:
I expect the output like from
docker-compose
command version 1.29.2Output of
docker compose version
:Output of
docker info
:Additional environment details:
The text was updated successfully, but these errors were encountered: