1) Ssh into the container: ulimit -n 1024
2) Console encrypted vnc via proxmox web interface: ulimit -n 1024
2) From host / pct enter ContainerID : ulimit -n 65536
What is the real ulimit value for lxc containers? Is inhereted from the host?
If I want to increase the value, should I apply the following instructions from http://brentingitup.com/?q=node/22, or there is another way?
In an unprivileged container, even a process running as root is really mapped to an unprivileged user in the host OS, so the attempt to raise the hard limit is denied. To fix this limitation for Apache, set the hard limit for the user running the container as follows:
$ sudo vi /etc/security/limits.conf
lxcd soft nofile 1024
lxcd hard nofile 8192
Thank you!
2) Console encrypted vnc via proxmox web interface: ulimit -n 1024
2) From host / pct enter ContainerID : ulimit -n 65536
What is the real ulimit value for lxc containers? Is inhereted from the host?
If I want to increase the value, should I apply the following instructions from http://brentingitup.com/?q=node/22, or there is another way?
In an unprivileged container, even a process running as root is really mapped to an unprivileged user in the host OS, so the attempt to raise the hard limit is denied. To fix this limitation for Apache, set the hard limit for the user running the container as follows:
$ sudo vi /etc/security/limits.conf
lxcd soft nofile 1024
lxcd hard nofile 8192
Thank you!