Posts tagged: compose

All posts with the tag "compose"

1 posts latest post 2025-08-02
Docker Volume Mounts Link to an Inode

Docker Volume Mounts Link to an Inode

docker bind mounts are specified as filepaths - this is very intuitive. I want /path/to/directory on my host to be shared with /another/path/foo in a container. But what if /path/to/directory on the host is moved? This is a situation I have found myself in at home and it turns out that I’m actually in almost zero trouble thankfully… TLDR - I have a bunch of compose stacks in /home/projects/homelab-compose/ / and I want to move them to /home/projects/homelap-mono/compose/ / I don’t want to take down all my stacks to do this because I don’t yet have a convenient way to do it - but can I just and be done with it? The issue is that some of my stacks use local volume mounts - ie. there is a data volume on the host in /home/projects/homelab-compose/ /docker-data for some of the applications… can I just move everything and docker is nonethewiser? Turns out the answer is mostly with some caveats to keep in mind.. Let’s start with why it works and then show an example… Why # This works because…