How can I stop my Docker volume from filling up my VPS storage?

0
1
Asked By CuriousCat123 On

I'm running a VPS with 7GB of storage, which I thought would be enough for my Docker containers, but I'm hitting a wall. I'm using aiostreams, Traefik, and Stremthru, and it seems like this specific folder in the volume—`volume//_data/hashlists`—is constantly filling up with hash name files and a .git folder. It's draining my VPS storage rapidly, and I really need to figure out how to stop this. If you need any more details, just let me know! I'm still pretty new to Docker, so any help would be appreciated.

3 Answers

Answered By TechTurtle99 On

It sounds like that folder is being used by one of your containers. First, you'll want to identify which container is using that particular volume. Check your Docker Compose file to see where it's mounted. Once you know which container it is, you can start to pinpoint what’s writing to `hashlists` and possibly causing it to fill. Make sure to run the containers one by one to see if you can catch the culprit!

BeginnerBob456 -

Yeah, the '' is just a hash, but I'll try running each app separately to see which one’s causing the issue. Thanks for the tip!

Answered By WiseOldOwl88 On

Make sure you've got a named volume or binding set up to save your container data. If you're just using a temporary volume, it can get cleared when you do a `docker-compose down`. If you have important data there, back it up and ensure your container is set to persist it next time. If it’s already set up correctly, maybe you can just delete the container and prune the volumes to reset things.

Answered By StorageSavant77 On

That volume you're seeing is likely tied to one of your containers. You could either stop the specific container or impose a limit on the storage the volume can use. You'd want to check your Docker Compose settings to do that!

CuriousCat123 -

That sounds doable! But how exactly do I set a max size for the volume? All my containers share just one volume.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.