Default Volume Directory For Each Container

AI-generated summary

Isabel_Jason, new to Docker, asks if the default volume directory for containers (typically /var/lib/docker/volumes) can be changed to a custom host directory or partition to manage space better and delete orphaned volumes—especially while self-hosting Discourse. riking responds that if installing Discourse standalone, Docker internals shouldn’t need manual tweaking, and asks for more context on the setup. Isabel_Jason clarifies they’re trying to conserve disk space and better manage volumes for Discourse containers. fefrei suggests first running /var/discourse/launcher cleanup to remove old containers, and while symlinks could technically redirect Docker’s storage or Discourse shared folders to another volume, this approach is not recommended.

I am an entire new to docker and I comprehend the way default container volumes are made. container volumes are within/var/lib/docker/volumes. would i be able to change the default volume catalog for every holder, to an directory/partition of decision on the host framework?

If you’re installing Discourse by itself, you shouldn’t need to worry about the internals of Docker. Exactly how are you trying to set up your install and why?

Installing Discourse haven’t helped me a lot to Use less space in-order to maintain specific volume for each & delete orphaned volumes in Docker containers. so could you help me with that??

If you are low on disk space, try running /var/discourse/launcher cleanup to clean up old containers first.
If you really want, you can use symlinks to move Docker’s storage or the shared folders used by Discourse to a different volume, but this isn’t recommended.