From dc6073c254430629c7f299e476a8fdc8daa45deb Mon Sep 17 00:00:00 2001 From: Brandon Philips Date: Mon, 23 Jun 2014 14:54:43 -0700 Subject: [PATCH] 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 --- .../coreos-overlay/app-emulation/docker/files/docker.service | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sdk_container/src/third_party/coreos-overlay/app-emulation/docker/files/docker.service b/sdk_container/src/third_party/coreos-overlay/app-emulation/docker/files/docker.service index 174ccb9b54..89c292ad3b 100644 --- a/sdk_container/src/third_party/coreos-overlay/app-emulation/docker/files/docker.service +++ b/sdk_container/src/third_party/coreos-overlay/app-emulation/docker/files/docker.service @@ -5,6 +5,8 @@ Documentation=http://docs.docker.io [Service] Environment="TMPDIR=/var/tmp/" ExecStartPre=/bin/mount --make-rprivate / +LimitNOFILE=1048576 +LimitNPROC=1048576 # Run docker but don't have docker automatically restart # containers. This is a job for systemd and unit files. ExecStart=/usr/bin/docker -d -s=btrfs -r=false -H fd://