Comment on How do I run docker compose on Bazzite?
just_another_person@lemmy.world 3 days ago
It’s an immutable distro, so the regular locations on the filesystem are all read-only. The only way you can do this is making sure you mount separate storage, or use the userspace home mount or whatever they call it. It’s trivial to move the docker dir to wherever, so just do that.
Dave@lemmy.nz 3 days ago
I’m already using bind mounts under the /home directory. I learnt pretty early on day 1 not to fight the distro, so I’m trying to understand the way Bazzite wants this to be done. From another reply, it sounds like it’s a difference in rootless/rootful containers so I’m going to try to work out how to run a podman container as root and see if this helps.
just_another_person@lemmy.world 3 days ago
No, it’s the difference between your docker service knowing it’s datadir isn’t in /var/lib and not.
Shut down docker. Create a datadir in your writeable mount, change the docker configs to point to the new location, and restart.
Here’s an example: linuxconfig.org/how-to-move-docker-s-default-var-…
Dave@lemmy.nz 3 days ago
I seem to have got it working using podman, adding a Z flag to the bind mount to make SELinux happy.