-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
config
output strips quote marks and loses version number
#7771
Comments
Also experiencing this issue, reverting to docker-compose 1.26 solves it. |
I also, just hit this with docker-compose 1.27.4 for both mac and linux which breaks my builds cause we use the |
As a workaround I just use |
@sixeyed I found this because it broke Ch14 of DIAMOL :) . just manually quoting the cpu value in the stack output to get it working, but yes, I would love for it to work as smoothly as it does in your demonstrations. |
bump |
Any news on this? More than 0.5yr and no fix to core functionality? |
same here |
this works for me on windows, thanks man ! |
Also having this issue because we use it to merge compose files for deployment... |
2 years later, and the issue still here. |
This is still a problem for us as well, but due to the upcoming forced transition to docker-compose V2 and V2 using the strict compose spec, I can't imagine this will ever get fixed at this point. So should this be turned into a feature request to have a |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
About |
This issue has been automatically marked as not stale anymore due to the recent activity. |
1 similar comment
This issue has been automatically marked as not stale anymore due to the recent activity. |
Description of the issue
docker-compose config
has a reversion in the 1.27 release. The output strips the minor version number and removes quote marks for cpu limits and ports. This turns a valid input file into invalid output, so it can't be deployed as a stack in Swarm mode.Context information (for bug reports)
This is an issue because you can't join multiple Compose files together for a stack deploy, so you use
config
to join all your overrides into a single stack file to deploy. I guess this will break a lot of pipelines (and the exercises in chapter 14 of Learn Docker in a Month of Lunches).Output of
docker-compose version
Steps to reproduce the issue
Input:
Output from 1.27:
Version 3.7 has become version 3, and the cpu has lost its quotes. If you try to
stack deploy
the output then you get the errorservices.nginx.deploy.resources.limits.cpus must be a string
.Expected result
This is the output from 1.22 - which is correct and will deploy as a stack:
Additional information
Docker Desktop Edge on Windows.
The text was updated successfully, but these errors were encountered: