File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
docs/reference/commandline Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -1349,6 +1349,26 @@ $ docker run --ulimit nofile=1024:1024 --rm debian sh -c "ulimit -n"
1349
1349
> $ docker run -it --ulimit as=1024 fedora /bin/bash
1350
1350
> ` ` `
1351
1351
1352
+ #### Supported options for `--ulimit`:
1353
+
1354
+ | Option | Description |
1355
+ |:-------------|:----------------------------------------------------------|
1356
+ | `core` | Maximum size of core files created (`RLIMIT_CORE`) |
1357
+ | `cpu` | CPU time limit in seconds (`RLIMIT_CPU`) |
1358
+ | `data` | Maximum data segment size (`RLIMIT_DATA`) |
1359
+ | `fsize` | Maximum file size (`RLIMIT_FSIZE`) |
1360
+ | `locks` | Maximum number of file locks (`RLIMIT_LOCKS`) |
1361
+ | `memlock` | Maximum locked-in-memory address space (`RLIMIT_MEMLOCK`) |
1362
+ | `msgqueue` | Maximum bytes in POSIX message queues (`RLIMIT_MSGQUEUE`) |
1363
+ | `nice` | Maximum nice priority adjustment (`RLIMIT_NICE`) |
1364
+ | `nofile` | Maximum number of open file descriptors (`RLIMIT_NOFILE`) |
1365
+ | `nproc` | Maximum number of processes available (`RLIMIT_NPROC`) |
1366
+ | `rss` | Maximum resident set size (`RLIMIT_RSS`) |
1367
+ | `rtprio` | Maximum real-time scheduling priority (`RLIMIT_RTPRIO`) |
1368
+ | `rttime` | Maximum real-time execution time (`RLIMIT_RTTIME`) |
1369
+ | `sigpending` | Maximum number of pending signals (`RLIMIT_SIGPENDING`) |
1370
+ | `stack` | Maximum stack size (`RLIMIT_STACK`) |
1371
+
1352
1372
Docker sends the values to the appropriate OS `syscall` and doesn't perform any byte conversion.
1353
1373
Take this into account when setting the values.
1354
1374
You can’t perform that action at this time.
0 commit comments