how to set ulimit / file descriptor on docker container the image tag is phusion/baseimage-docker

前端 未结 8 2080
失恋的感觉
失恋的感觉 2020-11-28 06:32

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 trie

8条回答
  •  一生所求
    2020-11-28 07:01

    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

提交回复
热议问题