So I have everything setup for my HTPC and all is working great. They only issue I have is with my hard drive mounts.
After a few hours, my drives don’t show any files or folders in all containers. Once I reboot the containers, it works again for a few hours and then show empty again.
Has anybody ever seen this? It happens on all of my containers.
Your volumes are “bind-mounts”, technicaly they use “mount --bind” to mount a host folder into a container folder.
Such a mount is like a pointer. Now here is the fun part: the container will see the exact pointer that /media had during container start. If the host side of the mount gets unmounted (disconnect/sleep?), the container side of the mount becomes stale. If you re-mount the host side, the “pointer” inside the container will still point to the stale volume. You will need to restart the container in order to see the new mount “pointer”.
Hope this makes sense…
LT:DR: normal behavior, don’t use a drive that can be unmounted/remounted during container execution.
Either don’t use a usb drive (my Plex instance mounts media from a nfs remote share) or figure out how to prevent your usb drive to sleep, hibernate or whatever caused the disconnect.