mirror of
https://github.com/containers/podman.git
synced 2025-08-06 19:44:14 +08:00
Merge pull request #21728 from rhatdan/docs3
[CI:DOCS] Fix up example description of podman-volume commands
This commit is contained in:
@ -19,8 +19,16 @@ returned.
|
|||||||
|
|
||||||
## EXAMPLE
|
## 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
|
/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
|
## EXAMPLE
|
||||||
|
|
||||||
Unmount volume with a given ID
|
Unmount volume with a given ID:
|
||||||
```
|
```
|
||||||
podman volume unmount volumeID
|
podman volume unmount volumeID
|
||||||
```
|
```
|
||||||
|
|
||||||
Unmount multiple volumes with given IDs
|
Unmount multiple volumes with given IDs:
|
||||||
```
|
```
|
||||||
podman volume unmount volumeID1 volumeID2 volumeID3
|
podman volume unmount volumeID1 volumeID2 volumeID3
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user