-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Change resource.limits.cpus conversion to string #7778
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
Conversation
dde2a04 to
797cf7f
Compare
|
I also noticed by diffing the json schema from docker-compose with the config schema used by docker stack deploy (https://github.com/docker/cli/blob/master/cli/compose/schema/data/config_schema_v3.9.json) that the resource.reservations.cpus values are also supposed to be strings so I changed the interpolation of those as well. This is the first time I'm browsing through docker stack/docker-compose code, but is there any reason why there are two configs at all? Wouldn't it be safer/easier to have one primary config and one that extends the other in some way? EDIT: in order to reproduce, use the following docker-compose.yml file: |
…docker stack deploy Signed-off-by: Floris-Andrei Stoica-Marcu <floris.sm@gmail.com>
Signed-off-by: Floris-Andrei Stoica-Marcu <floris.sm@gmail.com>
b43545f to
948cea5
Compare
|
Already fixed by #7768 |
@ulyssessouza I don't think so, please see #7774 carefully |
|
@ulyssessouza please consider reopening this issue, As @gingerhot indicates with the issue #7774 although the schema supports strings again for |
|
I also have issues with this. cat deploy.sh cat .stack.yml |
|
Hi guys, I'm facing the same issue with cpus limits. It's not related to reservations, It's related to limits. as @ieugen mentioned above. Is there any workaround without a hacky solution? I'm using compose version 1.29.2 |
Fixed the regression introduced in 1.27.0, by changing the resource.limits.cpus conversion to string in order to be compatible with docker stack deploy.
Steps to reproduce the issue:
Having the following docker-compose.yml file
After the fix, the command runs as expected.
Resolves #7774