-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Support ulimits on Swarm services. #41284
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
#41282 was merged; this needs a rebase now |
c1a0dea
to
1f07e05
Compare
Includes moby/swarmkit#2967, which adds Ulimits to ContainerSpec. Signed-off-by: Albin Kerouanton <albin@akerouanton.name>
Can you squash the last two commits? |
Add Ulimits field to the ContainerSpec API type and wire it to Swarmkit. This is related to moby#40639. Signed-off-by: Albin Kerouanton <albin@akerouanton.name>
1f07e05
to
c76f380
Compare
I rebased and squashed my commits 😉 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@cpuguy83 double check; this is not something we want to be living in Resources.Limits
?
Discussing with @cpuguy83 and we should be ok merging as-is; we can update if we think it has to move |
tldr; didn't want to hold this up and require the contributor to change, we can fix it if necessary. CapAdd/Drop would follow this same line of thinking as well. |
- What I did
This is related to #40639.
- How I did it
- How to verify it
I tested my changes by updating docker/cli and using
docker service create|update|inspect
anddocker stack deploy
(I have to create that PR).- Description for the changelog
Support ulimits on Swarm services.
- A picture of a cute animal (not mandatory but encouraged)