8000 Merge pull request #5870 from thaJeztah/carry_5855 · docker/cli@068a01e · GitHub
[go: up one dir, main page]

Skip to content

Commit 068a01e

Browse files
authored
Merge pull request #5870 from thaJeztah/carry_5855
Add detailed descriptions for --ulimit options in docker run documentation
2 parents ffdfc5f + d75f8d8 commit 068a01e

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

docs/reference/commandline/container_run.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1349,6 +1349,26 @@ $ docker run --ulimit nofile=1024:1024 --rm debian sh -c "ulimit -n"
13491349
> $ docker run -it --ulimit as=1024 fedora /bin/bash
13501350
> ```
13511351
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+
13521372
Docker sends the values to the appropriate OS `syscall` and doesn't perform any byte conversion.
13531373
Take this into account when setting the values.
13541374

0 commit comments

Comments
 (0)
0