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:
Daniel J Walsh
2024-01-10 06:47:00 -05:00
parent d084146864
commit d3a49fdedb
61 changed files with 377 additions and 142 deletions

View File

@ -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
```