Skip to content

Commit 3cf6903

Browse files
authored
Merge pull request #3780 from ningmingxiao/add_ulimit_doc
doc:add some doc for ulimit
2 parents 8ed777d + b26474b commit 3cf6903

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

docs/command-reference.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,26 @@ Ulimit flags:
378378

379379
- :whale: `--ulimit`: Set ulimit
380380

381+
--ulimit can be used to restrict the following types of resources.
382+
383+
| type | describe| value range |
384+
|----|----|----|
385+
| core | limits the core file size (KB)| A 64-bit integer (INT64), with no units. It can be 0, negative, where -1 represents UNLIMITED (i.e., no limit is applied), and any other negative values will be forcibly converted to a large positive integer.|
386+
| cpu | max CPU time (MIN)| same as above|
387+
| data |max data size (KB) | same as above|
388+
| fsize | maximum filesize (KB)| same as above|
389+
| locks | max number of file locks the user can hold | same as above|
390+
| memlock | max locked-in-memory address space (KB) | same as above|
391+
| msgqueue | max memory used by POSIX message queues (bytes)| same as above|
392+
| nice | nice priority | same as above |
393+
| nproc | max number of processes | same as above|
394+
| rss | max resident set size (KB)| same as above|
395+
| rtprio | max realtime priority| same as above|
396+
| rttime | realtime timeout | same as above|
397+
| sigpending | max number of pending signals| same as above|
398+
| stack | max stack size (KB) | same as above|
399+
| nofile | max number of open file descriptors| A 64-bit integer (int64), with no units. It cannot be negative; negative values will be forcibly converted to a large number, and an "Operation not permitted" error will occur during setting|
400+
381401
Verify flags:
382402

383403
- :nerd_face: `--verify`: Verify the image (none|cosign|notation). See [`./cosign.md`](./cosign.md) and [`./notation.md`](./notation.md) for details.

0 commit comments

Comments
 (0)