The latest docker supports setting ulimits through the command line and the API. For instance, docker run
takes --ulimit <type>=<soft>:<hard>
and there can be as many of these as you like. So, for your nofile, an example would be --ulimit nofile=262144:262144
More Related Contents:
- How is Docker different from a virtual machine?
- How to access host port from docker container [duplicate]
- How to run a cron job inside a docker container?
- How to get the IP address of the docker host from inside a docker container [duplicate]
- How do I get into a Docker container’s shell?
- What is linux equivalent of “host.docker.internal” [duplicate]
- Using Docker-Compose, how to execute multiple commands
- Permission denied on accessing host directory in Docker
- What is the difference between a Docker image and a container?
- What does –net=host option in Docker command really do?
- docker run
- Docker command fails during build, but succeeds while executed within running container
- How do you attach and detach from Docker’s process?
- How to use sudo inside a docker container?
- Docker – Name is already in use by container
- Airflow: how to get pip packages installed via their docker-compose.yml?
- Docker, what is it and what is the purpose
- docker mounting volumes on host
- How can I make my own base image for Docker?
- How do I mount a host directory as a volume in docker compose
- Docker CE on RHEL – Requires: container-selinux >= 2.9
- Bind to docker socket on Windows
- Not enough entropy to support /dev/random in docker containers running in boot2docker
- How to flatten a Docker image?
- How to edit /etc/hosts file in running docker container
- How to SSH into Docker?
- asp.net core 2.0 – multiple projects solution docker file
- docker-compose: difference between networks and links
- What is the use of Docker ‘host’ and ‘none’ Networks?
- What is the purpose of the file “docker.sock”?