Docker and Inodes
Trying out Pelican as a static site generator. An interesting thing I noticed with my development environment is that docker is not great at seeing inode changes in mounted volumes. My setup is the following:
- Write changes in VSCode (laptop)
- VSCode Remote-SSH Session (server) handles syncing those changes from my laptop
- I have the files in a Git Repo (server)
- I have the Git Repo as a mounted volume in a docker container
- The Pelican server runs in the docker container with
--autoreload
- The Pelican server does not notice changes to files and pick them up with autoreload.
My best guess is that docker doesn't get to see inode events for its mounted drives, at least in my default configuration. A little digging shows this issue from 2021. Seems like some folks don't see this same issue. Not worth the deep dive at this time, I just opened a second shell on the server and ran watch -n 1
with the generation command.