Bind mount, samba and containers: any risks involved?

Zamana

Renowned Member
Dec 20, 2015
78
0
71
56
Hi!

TL;DR;
Are there any risks involved in using bind mounted folders in containers and sharing these same folders through samba?

Long Version:
After using a bare metal Ubuntu for more than 6 years, I decided to use Proxmox and containers and I'm loving it. But, I realized recently that Plex is sometimes showing a weird behavior...

My storage is a ZFS pool (on the host). The folders are bind mounted in the containers, and I have one container with samba server, whose bind mounted folders are shared only to my desktop computer (a Macbook, by the way).

Sometimes Plex doesn't recognize some files (mainly subtitles files) that I copy to the movies/tv shows folders (even after correcting user/group/permissions manually), which obliges me to stop/start plexmediaserver process to get them recognized.

So... is it "safe" to use bind mount and samba simultaneously?

Is it safe/better/correct to use a container for samba? Or should I configure samba in the host?

After all, what is the "correct" to way to do this?


Thanks.
Regards.
 
Hi,
So... is it "safe" to use bind mount and samba simultaneously?
Yes, generally spoken.

Is it safe/better/correct to use a container for samba? Or should I configure samba in the host?
Samba needs lots of connection and so I would run the samba server on the host and run Plex as unprivileged container what is IMHO the safer way.
 
  • Like
Reactions: Zamana