A deeply annoying discovery I made today: if you have an #rclone mount that needs to be restarted, any running #docker writing to that mount is now writing to your filesystem without warning. I get that if the mount is gone, of course it has to write to the local filesystem. But when the mount comes back, it continues writing to the local filesystem, but if you change into the mounted directory, ls will show the contents of the mount, not the contents of the local filesystem that docker is busy writing to, and you will have no idea what black hole your files are falling into, because /mnt/offsite shows it's mounted, your docker agrees that it's writing to /mnt/offsite, and yet the files are nowhere to be found when you go to /mnt/offsite! They only suddenly appear when you umount the directory.
MostlyBlindGamer
in reply to 🇨🇦Samuel Proulx🇨🇦 • • •I’m not sure this is a docker issue. /mnt isn’t that special, it’s just a directory where you, by convention, make other directories to mount stuff. Your OS handles that, not docker.
When you unmount something, /mnt/whatever doesn’t cease to exist, it’s just acting like a regular directory. You can write to it just fine. You can even then mount something else to the same directory, hiding its local contents.
Think of it like a door into your back yard that you can attach a tube slide to, connected to a storage unit. You throw stuff through the door, it goes to the storage unit. You disconnect the tube, it goes into your back yard. You connect the tube again, you can’t get to your back yard.
🇨🇦Samuel Proulx🇨🇦
in reply to MostlyBlindGamer • • •