NVIDIA / enroot

A simple yet powerful tool to turn traditional container/OS images into unprivileged sandboxes.
Apache License 2.0
649 stars 94 forks source link

The right way to increase ulimit #167

Closed verdimrc closed 1 year ago

verdimrc commented 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?

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 ... ?

3XX0 commented 1 year ago

You can set the ulimit the usual way or inside an entrypoint if you want

verdimrc commented 1 year ago

Thank you.