Jeroen Baert on Nostr: Very specific problem, but here we go: I've got shares on a NAS, which I serve over ...
Very specific problem, but here we go:
I've got shares on a NAS, which I serve over NFS3. I want to mount these in a docker container BUT want to make sure the shares are unmounted when they have not seen I/O for a while. Saves power and lets the disks spin down.
My current solution:
- AutoFS on host
- Mount the folder *above* the autoFS mount point as a bind mount marked "shared" in docker-compose
Positive: Drives get unmounted when idle.
Negative: Feels hacky, cannot mount readonly
I've got shares on a NAS, which I serve over NFS3. I want to mount these in a docker container BUT want to make sure the shares are unmounted when they have not seen I/O for a while. Saves power and lets the disks spin down.
My current solution:
- AutoFS on host
- Mount the folder *above* the autoFS mount point as a bind mount marked "shared" in docker-compose
Positive: Drives get unmounted when idle.
Negative: Feels hacky, cannot mount readonly