Perhaps I’m just searching for the entirely wrong things, but I can’t seem to figure out how to specify a directory for a volume in either Podman or Docker. The documentation hasn’t helped much, since I can’t find anything referencing to my problem.

I’m trying to mount a 2nd drive (/mnt/sdb/), but every solution leaves the mountpoint at the default location. (/home/user/.loca/share/containers/volumes/so-on-so-forth/)

Any help would be greatly appreciated.

  • vegetaaaaaaa@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    1 year ago

    Without more information, I’d say you’re looking for podman run --volume /mnt/sdb/:/path/inside/your/container. Check the manpage for podman run