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

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

    If using the docker-compose file, Based on docker compose version 2.x We can set like as below, by overriding the default config.

    ulimits:
      nproc: 65535
      nofile:
        soft: 26677
        hard: 46677
    

    https://docs.docker.com/compose/compose-file/

提交回复
热议问题