mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-20 05:51:18 +02:00
app-emulation/docker: add LimitNOFILE=1048576
Default to having a high file number limit this can be troublesome[1] but most containers a based on a new enough glibc that this is OK. [1] https://github.com/dotcloud/docker/issues/6560
This commit is contained in:
parent
f910d9335d
commit
dc6073c254
@ -5,6 +5,8 @@ Documentation=http://docs.docker.io
|
|||||||
[Service]
|
[Service]
|
||||||
Environment="TMPDIR=/var/tmp/"
|
Environment="TMPDIR=/var/tmp/"
|
||||||
ExecStartPre=/bin/mount --make-rprivate /
|
ExecStartPre=/bin/mount --make-rprivate /
|
||||||
|
LimitNOFILE=1048576
|
||||||
|
LimitNPROC=1048576
|
||||||
# Run docker but don't have docker automatically restart
|
# Run docker but don't have docker automatically restart
|
||||||
# containers. This is a job for systemd and unit files.
|
# containers. This is a job for systemd and unit files.
|
||||||
ExecStart=/usr/bin/docker -d -s=btrfs -r=false -H fd://
|
ExecStart=/usr/bin/docker -d -s=btrfs -r=false -H fd://
|
||||||
|
Loading…
x
Reference in New Issue
Block a user