I need to set the file descriptor limit correctly on the docker container I connect to container with ssh (https://github.com/phusion/baseimage-docker)
Already tried:
- edit limits.conf the container ignore this file
- upstart procedure found at https://coderwall.com/p/myodcq but this docker image has different kind of init process. (runit)
- I tried to modify configuration of pam library in /etc/pam.d
- try to enabled pam for ssh in sshd_config
The output it always the same.
bash: ulimit: open files: cannot modify limit: Operation not permitted
Here is what I did.
set
ulimit -n 32000
in the file /etc/init.d/dockerand restart the docker service
docker run -ti node:latest /bin/bash
run this command to verify
user@4d04d06d5022:/# ulimit -a
should see this in the result
open files (-n) 32000