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)
The latest docker supports setting ulimits through the command line and the API. For instance, docker run takes --ulimit =: and there can be as many of these as you like. So, for your nofile, an example would be --ulimit nofile=262144:262144