Skip to content
This repository was archived by the owner on Dec 13, 2018. It is now read-only.

Conversation

@cpuguy83
Copy link
Contributor

Adds a new item to the config struct []*Rlimit
Rlimit takes a type (ie, syscall.RLIMIT_NOFILE) and the hard/soft limit
(As max/cur)

My naive shot at adding support for setting rlimits.

@mrunalp
Copy link
Contributor

mrunalp commented Nov 26, 2014

drone failed. Needs gofmt.

@cpuguy83
Copy link
Contributor Author

Sorry, fixed.

config.go Outdated
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: spelling Cur out to Current is better readability karma :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed... and possibly set it to "Hard" and "Soft" instead.
lmk if that's what we want.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hard and Soft sounds even better.

@rjnagal
Copy link
Contributor

rjnagal commented Nov 26, 2014

just a couple of nits. LGTM.

@cpuguy83 cpuguy83 force-pushed the add_rlimit_support branch 2 times, most recently from 1c55978 to 27a6d7a Compare November 26, 2014 19:03
config.go Outdated
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would not have a pointer here for these values, they are small. Rlimits []Rlimit

Adds a new item to the config struct []*Rlimit
Rlimit takes a type (ie, syscall.RLIMIT_NOFILE) and the hard/soft limit
(As max/cur)

Signed-off-by: Brian Goff <[email protected]>
@cpuguy83
Copy link
Contributor Author

Updated - Max/Soft set, using non-pointer for []Rlimit

@crosbymichael
Copy link
Contributor

LGTM

@mrunalp
Copy link
Contributor

mrunalp commented Nov 26, 2014

LGTM.

crosbymichael added a commit that referenced this pull request Nov 26, 2014
Add support for setting rlimit for contianer
@crosbymichael crosbymichael merged commit 7ce34f5 into docker-archive:master Nov 26, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants