Merge pull request #21728 from rhatdan/docs3

[CI:DOCS] Fix up example description of podman-volume commands
This commit is contained in:
openshift-merge-bot[bot]
2024-02-19 19:58:44 +00:00
committed by GitHub
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
```