podman-volume-mount(1)

πŸ“¦
version 6.1.4 Β· 4 versions
, in arch rolling, fedora 43, fedora 44, ubuntu resolute

✨ podman-volume-mount(1) β€” the girlies' guide to mounting a volume filesystem ✨

okay so bestie, this is a page from the General Commands Manual section, and it's all about podman-volume-mount πŸ’–. Strap in, it's short but it's mighty.


πŸŽ€ NAME πŸŽ€

podman-volume-mount β€” mount a volume filesystem, periodt.


🌸 SYNOPSIS 🌸

podman volume mount [volume ...]

yes that's it. you pass it some volumes, or like, don't, and it does its thing πŸ¦‹


πŸ’… DESCRIPTION πŸ’…

So here's the tea β˜•: this command mounts the file system of the volumes you name, in a location that the host can actually get to, and then it hands you back that location. it's giving "here's where your stuff lives now" 🫢

Rootless mode tea, listen up: if you're running rootless, you can only mount file volumes β€” unless you're running Podman inside the user namespace via the podman unshare command. Every other volume type just… fails to mount. no cap. πŸ’€

πŸ‘‘ RETURN VALUE πŸ‘‘

  • On success: the location of the mounted file system. iconic. 🌈
  • On error: an empty string and errno is returned. 😭

πŸ“ EXAMPLE πŸ“

Mount a specified volume, as Root:

# podman volume mount foo
/home/dwalsh/.local/share/containers/storage/volumes/foo/_data

In rootless mode, volume mounting only works after you run the podman unshare command to enter the user namespace:

$ podman unshare
# podman volume mount foo
/home/dwalsh/.local/share/containers/storage/volumes/foo/_data

see how the prompt changes from $ to #? that's the whole plot twist bestie 😌✨


πŸ”₯ SEE ALSO πŸ”₯

go read those next, iykyk πŸ“š


and that's the whole page, bestie! this was podman-volume-mount(1) from the General Commands Manual section, and yeah β€” the footer is literally just podman-volume-mount(1) again, no version or date info attached, so that's all we got. stay mounted, stay hydrated πŸ’œπŸ§š

πŸ“¦ where this page comes from