mirror of
https://github.com/containers/podman.git
synced 2025-05-17 23:26:08 +08:00
Add information about --latest support on man pages
On Mac and Windows systems the --latest option is not supported this PR mentions this fact in the examples section of the man page. Also added documentation and consistency to the man pages examples sections. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
@ -71,17 +71,33 @@ When not using the **local** and **image** drivers, the given options are passed
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
Create empty volume.
|
||||
```
|
||||
$ podman volume create
|
||||
```
|
||||
|
||||
Create empty named volume.
|
||||
```
|
||||
$ podman volume create myvol
|
||||
```
|
||||
|
||||
$ podman volume create
|
||||
|
||||
Create empty named volume with specified label.
|
||||
```
|
||||
$ podman volume create --label foo=bar myvol
|
||||
```
|
||||
|
||||
Create tmpfs named volume with specified size and mount options.
|
||||
```
|
||||
# podman volume create --opt device=tmpfs --opt type=tmpfs --opt o=size=2M,nodev,noexec myvol
|
||||
```
|
||||
|
||||
Create tmpfs named volume testvol with specified options.
|
||||
```
|
||||
# podman volume create --opt device=tmpfs --opt type=tmpfs --opt o=uid=1000,gid=1000 testvol
|
||||
```
|
||||
|
||||
Create image named volume using the specified local image in containers/storage.
|
||||
```
|
||||
# podman volume create --driver image --opt image=fedora:latest fedoraVol
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user