Ulimits in docker host vs container -


i wasn't able find straight answer, question, here is:

lets have host has max open files 1024:

[root@host]# ulimit -a open files                      (-n) 1024 

and docker container running in host :

[root@container]# ulimit -a open files                      (-n) 1048576 

so have problem in container if try open more 1024 files? think real limit in case container 1024 files. think?

the real limit 1048576.

have @ right part of image, shows containers isolated processes, running on same operating system:

containers vs. vms

as every system call in container handled directly host os, ulimit displayed (1048576) comes directly host os , value used.

the difference in ulimits have been caused a docker configuration, example.

(note vms, different: guest os might display value of 1048576, open calls in end handled host os, impose limit of 1024)


Comments

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -