-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
podman: add --ulimit host #3491
Conversation
pkg/spec/spec.go
Outdated
return errors.New("ulimit can use host only once") | ||
} | ||
|
||
type Rlimit struct { |
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.
Does this need to be public? It's purely scoped within this loop
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.
good point. I've pushed a new version
One nit otherwise LGTM |
6062cd1
to
0bd184d
Compare
LGTM |
7f23de3
to
0f99d88
Compare
add a simple way to copy ulimit values from the host. if --ulimit host is used then the current ulimits in place are copied to the container. Signed-off-by: Giuseppe Scrivano <[email protected]>
tests are passing |
ping |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: giuseppe, jamescassell The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
@@ -553,6 +559,20 @@ func addRlimits(config *CreateConfig, g *generate.Generator) error { | |||
) | |||
|
|||
for _, u := range config.Resources.Ulimit { | |||
if u == "host" { |
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.
Is there really no way to tell runc "just don't change rlimits"?
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.
it seems I've unnecessarily complicated things. Looks like it is enough to not specify any limits block and that won't change the rlimits. I'll do some more tests and open a PR
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.
much simpler version: #3583
add a simple way to copy ulimit values from the host.
if --ulimit host is used then the current ulimits in place are copied
to the container.
Signed-off-by: Giuseppe Scrivano [email protected]