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

前端 未结 8 2090
失恋的感觉
失恋的感觉 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:15

    Actually, I have tried the above answer, but it did not seem to work.

    To get my containers to acknowledge the ulimit change, I had to update the docker.conf file before starting them:

    $ sudo service docker stop
    $ sudo bash -c "echo \"limit nofile 262144 262144\" >> /etc/init/docker.conf"
    $ sudo service docker start
    

提交回复
热议问题