containers-storage-dedup(1)
π containers-storage-dedup β the girlies are deduplicating π
okay bestie, listen up, this is a page from the General Commands Manual and it's literally the glow-up your container images have been waiting for β¨
π NAME π
containers-storage-dedup β Deduplicate similar files in the images
like. it finds the twins. and it makes them one. iconic behavior fr fr π
πΈ SYNOPSIS πΈ
containers-storage dedup
that's it. that's the whole vibe. no flags required, just vibes and a filesystem that's down to clown π¦
β¨ DESCRIPTION β¨
Find similar files in the images and deduplicate them. So it goes on a lil scavenger hunt through your images, spots the files that are basically the same file wearing a different outfit, and merges them so you're not storing the same thing forty-seven times like a hoarder who refuses to throw out old concert tees π
It requires reflink support from the file system. No reflink, no dedup, no exceptions. If your filesystem isn't giving reflink energy, this command is not gonna slay, it's just gonna be sad π So check that first, iykyk.
π«Ά real talk: the reflink requirement is not a suggestion, it's a whole prerequisite. the command genuinely needs it.
π OPTIONS π
--hash-methodmethod β Specify the function to use to calculate the hash for a file. It can be one of:size,crc,sha256sum.
so basically you're telling it how to tell whether two files are the same. pick your fighter:
sizeβ the chill one, just compares how big the files are. lowkey fast, highkey unserious about accuracy but that's a you decision πcrcβ the middle child, a real checksum, decent balancesha256sumβ the main character, cryptographic and thorough, the one that actually does its homework β
whichever you pick, it goes in method, and yes, those three spellings exactly, don't freestyle them π
π EXAMPLE π
containers-storage dedup
that's it. run it, let it cook, watch your storage go from bloated to snatched β¨
and that's the whole page, bestie! this one came from November 2024, it's the containers-storage-dedup(1) page from General Commands Manual, and honestly? reflink-enabled filesystems could never be more blessed. go forth and deduplicate ππ
π§
π¦ where this page comes from
- ubuntu resolute: containers-storage 1.61.0+ds1-6 Β· Apache-2.0
- ubuntu stonking: containers-storage 1.63.0-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms