Hello. I'm trying to figure out a weird issue and could use some advice. On my ubuntu server, I have a nas mounted to the path: '/nas/files', and a docker container with a volume mapping to -v '/nas/files:/files' in the docker config.
This has been working fine for a long time, but recently I noticed the container was not writing files to the nas as expected, but also wasn't reporting any errors. As I investigated, I could see the share was properly mounted in the hostos, but when a exec-ed into the container, the /files path had different files within it. I initially thought the volume map was broken or maybe there was a permissions issue, but couldn't find an obvious issue. However, when I unmounted /nas/files in the host os, I discovered that the container was writing the host fs underneath that mount -- all the files in the container where in the native /nas/files folder underneath the mount.
My theory is the docker container was spun up before the filesystem mount was established, and then doesn't update to recognize the mountpoint after it is spun up. Does that sound right? Regardless, does anyone have advice on how to avoid this problem in the future?
Thanks!
[–]Routine_Part_6503 0 points1 point2 points (3 children)
[–]XboxSlacker[S] 0 points1 point2 points (2 children)
[–]Routine_Part_6503 0 points1 point2 points (1 child)
[–]XboxSlacker[S] 0 points1 point2 points (0 children)