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

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

    I have tried many options and unsure as to why a few solutions suggested above work on one machine and not on others.

    A solution that works and that is simple and can work per container is:

    docker run --ulimit memlock=819200000:819200000 -h  --name=current -v /home/user_home:/user_home -i -d -t docker_user_name/image_name
    

提交回复
热议问题