mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Don't hardcode default rlimit
The default for rlimit handling should be to inherit the rlimit of the daemon unless explicitly set. Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
parent
8e6d0107df
commit
f5a154f2d2
1 changed files with 0 additions and 7 deletions
|
@ -66,13 +66,6 @@ func New() *configs.Config {
|
||||||
ReadonlyPaths: []string{
|
ReadonlyPaths: []string{
|
||||||
"/proc/sys", "/proc/sysrq-trigger", "/proc/irq", "/proc/bus",
|
"/proc/sys", "/proc/sysrq-trigger", "/proc/irq", "/proc/bus",
|
||||||
},
|
},
|
||||||
Rlimits: []configs.Rlimit{
|
|
||||||
{
|
|
||||||
Type: syscall.RLIMIT_NOFILE,
|
|
||||||
Hard: 1024,
|
|
||||||
Soft: 1024,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if apparmor.IsEnabled() {
|
if apparmor.IsEnabled() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue