mirror of
https://github.com/containers/podman.git
synced 2025-05-20 08:36:23 +08:00
Fix up example description of podman-volume commands
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
@ -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
|
||||
```
|
||||
|
||||
|
@ -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
|
||||
```
|
||||
|
Reference in New Issue
Block a user