From fc71401516f5cc610b4a87c3e2b93825904a1554 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Sat, 17 Feb 2024 13:36:24 -0500 Subject: [PATCH] Fix up example description of podman-mount.1.md.in Signed-off-by: Daniel J Walsh --- docs/source/markdown/podman-mount.1.md.in | 23 +++++++++++---------- docs/source/markdown/podman-unmount.1.md.in | 6 +++--- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/docs/source/markdown/podman-mount.1.md.in b/docs/source/markdown/podman-mount.1.md.in index cd535311f1..48e6ce4c8d 100644 --- a/docs/source/markdown/podman-mount.1.md.in +++ b/docs/source/markdown/podman-mount.1.md.in @@ -41,31 +41,32 @@ Do not truncate the output (default *false*). ## EXAMPLE +In rootful mode, Mount specified container. ``` -podman mount c831414b10a3 - +# podman mount c831414b10a3 /var/lib/containers/storage/overlay/f3ac502d97b5681989dff84dfedc8354239bcecbdc2692f9a639f4e080a02364/merged ``` +In rootless mode, container mounting only works from inside the user namespace. +``` +$ podman unshare +# podman mount affectionate_mcnulty +/home/dwalsh/.local/share/containers/storage/overlay/4218326b9a80619aef005ff95067f76687ad975ce101c176598fb416f6186906/merged +``` + +List the currently mounted containers: ``` podman mount - c831414b10a3 /var/lib/containers/storage/overlay/f3ac502d97b5681989dff84dfedc8354239bcecbdc2692f9a639f4e080a02364/merged a7060253093b /var/lib/containers/storage/overlay/0ff7d7ca68bed1ace424f9df154d2dd7b5a125c19d887f17653cbcd5b6e30ba1/merged ``` + +Mount multiple containers: ``` podman mount c831414b10a3 a7060253093b - /var/lib/containers/storage/overlay/f3ac502d97b5681989dff84dfedc8354239bcecbdc2692f9a639f4e080a02364/merged /var/lib/containers/storage/overlay/0ff7d7ca68bed1ace424f9df154d2dd7b5a125c19d887f17653cbcd5b6e30ba1/merged ``` -``` -podman mount - -c831414b10a3 /var/lib/containers/storage/overlay/f3ac502d97b5681989dff84dfedc8354239bcecbdc2692f9a639f4e080a02364/merged -a7060253093b /var/lib/containers/storage/overlay/0ff7d7ca68bed1ace424f9df154d2dd7b5a125c19d887f17653cbcd5b6e30ba1/merged -``` - ## SEE ALSO **[podman(1)](podman.1.md)**, **[podman-unmount(1)](podman-unmount.1.md)**, **[podman-unshare(1)](podman-unshare.1.md)**, **mount(8)** diff --git a/docs/source/markdown/podman-unmount.1.md.in b/docs/source/markdown/podman-unmount.1.md.in index 8e09d6f58f..8b8653c7f8 100644 --- a/docs/source/markdown/podman-unmount.1.md.in +++ b/docs/source/markdown/podman-unmount.1.md.in @@ -42,17 +42,17 @@ Note: Other processes can fail if the mount point they are using is removed with ## EXAMPLE -Unmount container with a given ID +Unmount container with a given ID: ``` podman container unmount containerID ``` -Unmount multiple containers with given IDs +Unmount multiple containers with given IDs: ``` podman unmount containerID1 containerID2 containerID3 ``` -Unmount all containers +Unmount all containers: ``` podman unmount --all ```