Fix up example description of podman-volume commands

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
Daniel J Walsh
2024-02-17 13:36:26 -05:00
parent d5a17ad9a0
commit a0109caa7d
2 changed files with 11 additions and 3 deletions

View File

@ -19,8 +19,16 @@ returned.
## EXAMPLE
Mount specified volume. As Root:
```
podman volume mount foo
# podman volume mount foo
/home/dwalsh/.local/share/containers/storage/volumes/foo/_data
```
In rootless mode, volume mounting only works after executing the podman unshare command to enter the user namespace.
```
$ podman unshare
# podman volume mount foo
/home/dwalsh/.local/share/containers/storage/volumes/foo/_data
```

View File

@ -19,12 +19,12 @@ counter reaches zero indicating no other processes are using the mount.
## EXAMPLE
Unmount volume with a given ID
Unmount volume with a given ID:
```
podman volume unmount volumeID
```
Unmount multiple volumes with given IDs
Unmount multiple volumes with given IDs:
```
podman volume unmount volumeID1 volumeID2 volumeID3
```