547
社区成员
发帖
与我相关
我的任务
分享
command: create
description: Create a container, optionally pass options.
usage: create [options]
[options] can be one of the following:
--bind_mounts[index] # array
.src_path <src_path> (string) # required
.dst_path <dst_path> (string) # required
.mode <mode> (RO, RW) # required
[--grace_time <grace_time> (uint32)] # optional
[--handle <handle> (string)] # optional
[--network <network> (string)] # optional
[--rootfs <rootfs> (string)] # optional
bind_mounts
If supplied, this specifies a set of paths to be bind mounted inside the container. The value must be an array. The elements in this array specify the bind mounts to execute, and are executed in order. Every element must be of the form:
[
# Path in the host filesystem
"/host/path",
# Path in the container
"/path/in/container",
# Optional hash with options. The `mode` key specifies whether the bind
# mount should be remounted as `ro` (read-only) or `rw` (read-write).
{
"mode" => "ro|rw"
}
]