Skip to content

Commit ebbc68e

Browse files
author
Zhai Zhaoxuan
committed
generate: add device option in bash-completion and manpage
Signed-off-by: Zhai Zhaoxuan <[email protected]>
1 parent 1c99f9a commit ebbc68e

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

completions/bash/oci-runtime-tool

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@ _oci-runtime-tool_generate() {
305305
--cap-drop
306306
--cgroups-path
307307
--cwd
308+
--device
308309
--env
309310
--env-file
310311
--gid

man/oci-runtime-tool-generate.1.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,16 @@ read the configuration from `config.json`.
5151
**--cwd**=PATH
5252
Current working directory for the process. The deafult is */*.
5353

54+
**--device**=*TYPE:MAJOR:MINOR:PATH[:OPTIONS...]*
55+
Add a device file in container. e.g. --device=c:10:229:/dev/fuse:fileMode=438:uid=0:gid=0
56+
The *TYPE*, *MAJOR*, *MINOR*, *PATH* are required.
57+
*TYPE* is the device type. The acceptable values are b (block), c (character), u (unbuffered), p (FIFO).
58+
*MAJOR*/*MINOR* is the major/minor device id.
59+
*PATH* is the device path.
60+
The *fileMode*, *uid*, *gid* are optional.
61+
*fileMode* is the file mode of the device file.
62+
*uid*/*gid* is the user/group id of the device file.
63+
5464
**--disable-oom-kill**=true|false
5565
Whether to disable OOM Killer for the container or not.
5666

0 commit comments

Comments
 (0)