[systemd-devel] nspawn file descriptor limit running without .service/nspawn file

Lennart Poettering lennart at poettering.net
Wed Jul 29 18:05:04 UTC 2020


On Mi, 29.07.20 20:08, Damian Ivanov (damianatorrpm at gmail.com) wrote:

> Hello,
>
> Hope you can help me with this.
>
> How do I set unlimited file descriptors for a systemd-nspawn container
> launcher via systemd-nspawn?
>
> I saw this for the service file
> LimitNOFILE=infinity
>
> found it from here
> https://github.com/systemd/systemd/issues/4997
>
> Although I'm running it from cmd and
> --property="LimitNOFILE=infinity" gives me an error.
>

Use

    systemd-nspawn --rlimit=RLIMIT_NOFILE=8192:16384

You get the idea.

Lennart

--
Lennart Poettering, Berlin


More information about the systemd-devel mailing list