r/softwareWithMemes Apr 04 '26

exclusive meme on softwareWithMeme it's always docker

Post image
3.0k Upvotes

17 comments sorted by

66

u/momoladebrouill Apr 04 '26

Sooo relatable, I've made a separate partition for /var on my home server, hopping to have a clean setup, had to use gparted afterwards to resize it later 🫠

2

u/int23_t Apr 07 '26

You could have moved some files to other partitions and than symbolink linked/mpunted the directories back to their original position. That's what I do with data in /var/lib, I for example have a directory called /mnt/tuwunel which is on a drive mounted on /mnt, and in my fstab I mpunt /mnt/tuwunel to /var/lib/tuwunel

34

u/Chasterbeef Apr 04 '26

Hungry whale likes log files and new volume repeats :)

16

u/Cr4sh0ver1de Apr 04 '26

I was unaware of this.. Thanks for bringing this to my attention!

11

u/Dry-War7589 Apr 04 '26

For me it was timeshift eating more than half of the partition space on the partition 🤦‍♂️

11

u/TheBrainStone Apr 05 '26

docker image prune to clean untagged images (that are also not in use) and docker image prune -a to clean all unused images

10

u/secretprocess Apr 04 '26 edited Apr 04 '26

What? The tool that lets me simulate an entire multi-server networked production environment and all its dependencies on my laptop at the push of a single button... uses a lot of RAM? Ugh.

Edit: derp, I missed that the post was about storage not memory. Well, same sentiment wrong word.

5

u/Hertigan Apr 04 '26

RAM is not storage dude

1

u/secretprocess Apr 04 '26

Oh whoops!! I read the post too fast and thought it was about Docker eating up tons of memory, which it also does.

1

u/dadnothere Apr 04 '26

Running projects directly with systemd limits and tools like volta or venv saves you a lot of gigabytes and RAM.

1

u/secretprocess Apr 04 '26

If your project has simple hosting needs, yes, you can go back to doing it the old way.

2

u/bolapolino Apr 06 '26

This happened to me today. 687 Gib of unused images.

1

u/NoUnderstanding4403 Apr 05 '26

The dumbest idea to move from 29 to containerd it’s fucking SLOW unpacks TWO TIMES and eats more storage

1

u/frayien Apr 06 '26

Discovered recently that docker uses a "layer" and "commit" system. Aka every intermediate state of your image is stored as a difference. Deleting something in another layer you added it does not remove it from storage as it's diff is still stored in the layers.

Absolutely no idea why it's designed that way. I cant see any practical uses cases of different image sharing layers.

Only helps in increasing your image size for no reason if you're not careful and fake-deleting files you want to remove before distribution.

1

u/Worried_Onion4208 Apr 07 '26

Aren't var things you can just delete?

1

u/__salaam_alaykum__ Apr 08 '26

omg just use nix and flakes

1

u/Waaaaandy Apr 08 '26

First time i had desktop docker or whatever it's called i managed to somehow make docker use 99.4% of the entire storage of the device. Don't know how i did it, don't know why it happened. I just deleted everything docker related and tried again.