I have media that needs to be shared between containers. Previously I had everything on drives in my server that Proxmox ran on, so I set up a NFS server directly in Proxmox then did bind mounts for the containers. I just moved all my media storage over to a Synology unit so now I am trying to figure out the best way of sharing and it seems like Samba is the way to go.
Whats the proper way to auto mount a Samba share inside a container? I've tried a bunch of different things but I'm coming up blank.
Right now I have added the mount into the fstab of the containers but it doesn't actually mount. If I run 'mount -a' inside the container after boot then the share does mount properly but it won't automatically do it.
I don't think fstab is the way I'm supposed to do it, I just haven't been able to find the answer I'm looking for so I've just been experimenting.
*edit*
Got the problem fixed. I am using Arch Linux for the containers that need to access this share and it turned out to be an Arch thing, not a Proxmox problem. In case anybody comes across in search, if you want to mount a Samba share through fstab in Arch and it doesn't mount, enable the systemd service systemd-networkd-wait-online
Whats the proper way to auto mount a Samba share inside a container? I've tried a bunch of different things but I'm coming up blank.
Right now I have added the mount into the fstab of the containers but it doesn't actually mount. If I run 'mount -a' inside the container after boot then the share does mount properly but it won't automatically do it.
I don't think fstab is the way I'm supposed to do it, I just haven't been able to find the answer I'm looking for so I've just been experimenting.
*edit*
Got the problem fixed. I am using Arch Linux for the containers that need to access this share and it turned out to be an Arch thing, not a Proxmox problem. In case anybody comes across in search, if you want to mount a Samba share through fstab in Arch and it doesn't mount, enable the systemd service systemd-networkd-wait-online
Last edited: