$ systemctl show docker|grep LimitNOFILE LimitNOFILE=1048576 但是,在容器内部,则是一个非常巨大的数字——1073741816 代码语言:javascript 代码运行次数:0 运行 AI代码解释 $ docker run--rm ubuntu bash-c"cat /proc/self/limits"|grep"Max open files
The problem is thatRLIMIT_NPROCfrom the running system is captured in thepodmanconfig for the toolbox. Theulimit -uvaries from boot to boot. No idea why. If you reboot, and it is currently less that what was captured, you are out of luck. ...
const ( oldMaxSize = uint64(1048576) ) // getDefaultProcessLimits returns the nproc for the current process in ulimits format // Note that nfile sometimes cannot be set to unlimited, and the limit is hardcoded // to (oldMaxSize) 1048576 (2^20), see: http://stackoverflow.com/a/1213...