Closed verdimrc closed 1 year ago
To match the --ulimit stack=xxx from docker run (below), I found that I need to modify /etc/security/limits.conf. Is this the right way?
--ulimit stack=xxx
/etc/security/limits.conf
docker run --gpus all --ipc=host --ulimit memlock=-1 --ulimit stack=67108864 -it --rm nvcr.io/ea-bignlp/nemofw-training:23.07-py3 /bin/bash
Is it possible to set the limit only when I invoke enroot start ... ?
enroot start ...
You can set the ulimit the usual way or inside an entrypoint if you want
ulimit -s 4096 ; enroot start ubuntu
enroot start --rc <(echo ulimit -s 4096\; bash) ubuntu
Thank you.
To match the
--ulimit stack=xxx
from docker run (below), I found that I need to modify/etc/security/limits.conf
. Is this the right way?Is it possible to set the limit only when I invoke
enroot start ...
?