[lxc-users] Limit file descriptors

2016-03-19 Thread Alan Hoffmeister
Hello folks, I'm having some troubles where one container can drain the amount of file descriptors available in the host system. Does somebody knows how to limit file descriptors per container? I'm running lxd v2.0.0.rc3 and lxc v2.0.0.rc10 Cheers -- Alan Hoffmeister https://twitter.com/alan_ho

Re: [lxc-users] Limit file descriptors

2016-03-19 Thread Guido Jäkel
Dear Alan, adjust the limits per Container in /etc/security/limits.conf , e.g. add something like * hardnofile 8192 * softnofile 8000 * hardnproc 1024 * softnpro

Re: [lxc-users] Limit file descriptors

2016-03-19 Thread Alan Hoffmeister
Thanks for the reply, I'm trying to allow root access to my containers so adjusting limits inside the rootfs isn't a good idea for me. -- Alan Hoffmeister https://twitter.com/alan_hoff https://github.com/alanhoff https://keybase.io/alanhoff 2016-03-18 3:08 GMT-03:00 Guido Jäkel : > Dear Alan, >