Docker for mac ulimit5/3/2023 ![]() ![]() Limits on open files can be set in the Docker configuration using LimitNOFILE, or they can be passed to the docker run command: $ docker run -it -ulimit nofile=1024:2048 ubuntu bash -c 'ulimit -Hn & ulimit -Sn' You can not cross the hard limit but you can increase it if you are the root. To see the hard limit just type the following command ulimit -Hn You can find more about ulimit in this link. So in a sense, hard limit is actually the real limit. The reason for this is you are allowed to cross the soft limit. ![]() On the other hand, the value that the container is showing is the hard limit of the host OS. This is because when running the command in the host, it is showing its soft limit. The question is then why are you seeing a different value when running the same command from the host? ![]() If you do net set the value when running the container, the ulimit value displayed within the container comes from the host OS. Although its a little bit late, I just want to clear the doubts about the difference in ulimit. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |