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:
Brandon Philips 2014-06-23 14:54:43 -07:00
parent f910d9335d
commit dc6073c254

View File

@ -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://