1podman-volume-create(1)() podman-volume-create(1)()
2
3
4
6 podman-volume-create - Create a new volume
7
8
10 podman volume create [options]
11
12
14 Creates an empty volume and prepares it to be used by containers. The
15 volume can be created with a specific name, if a name is not given a
16 random name is generated. You can add metadata to the volume by using
17 the --label flag and driver options can be set using the --opt flag.
18
19
21 --driver=driver
22
23
24 Specify the volume driver name (default local).
25
26
27 --help
28
29
30 Print usage statement
31
32
33 -l, --label=label
34
35
36 Set metadata for a volume (e.g., --label mykey=value).
37
38
39 -o, --opt=option
40
41
42 Set driver specific options. For the default driver, local, this
43 allows a volume to be configured to mount a filesystem on the host.
44 For the local driver the following options are supported: type, device,
45 and o. The type option sets the type of the filesystem to be mounted,
46 and is equivalent to the -t flag to mount(8). The device option sets
47 the device to be mounted, and is equivalent to the device argument to
48 mount(8). The o option sets options for the mount, and is equivalent
49 to the -o flag to mount(8) with two exceptions. The o option supports
50 uid and gid options to set the UID and GID of the created volume that
51 are not normally supported by mount(8). Using volume options with the
52 local driver requires root privileges.
53
54
56 $ podman volume create myvol
57
58 $ podman volume create
59
60 $ podman volume create --label foo=bar myvol
61
62 # podman volume create --opt device=tmpfs --opt type=tmpfs --opt o=nodev,noexec myvol
63
64 # podman volume create --opt device=tmpfs --opt type=tmpfs --opt o=uid=1000,gid=1000 testvol
65
66
67
69 podman-volume(1), mount(8)
70
71
73 November 2018, Originally compiled by Urvashi Mohnani umohnani@red‐
74 hat.com ⟨mailto:umohnani@redhat.com⟩
75
76
77
78 podman-volume-create(1)()