containers...taging-dir(1)
β¨ containers-storage-applydiff-using-staging-dir β the manual page π
ok so you're looking at containers-storage-applydiff-using-staging-dir(1), a General Commands Manual situation, and bestie I promise it's not scary. it's giving "apply a diff, but make it tidy." let's go π¦
πΈ NAME πΈ
containers-storage-applydiff-using-staging-dir β apply a layer diff to a layer using a staging directory. yes that's the whole vibe, no cap.
π SYNOPSIS π
containers-storage applydiff-using-staging-dir layerNameOrID source
that's it. two little arguments and you're done, periodt. π
β¨ DESCRIPTION β¨
okay so here's the lore. when a layer is first created, it contains no changes relative to its parent layer. like, a blank slate, a fresh face, zero drama. π
so how do you actually put stuff in it? two ways, bestie:
- mount the layer read-write and modify its contents directly, or
- add (or remove) contents by applying a layer diff.
and a layer diff? it takes the form of a (possibly compressed) tar archive β yes, possibly compressed, that's canon β with additional information present in its headers. you can produce one by running containers-storage diff or an equivalent. iykyk. π₯
now here's the part that makes this command special, and the way that it differs from apply-diff... <purple>applydiff-using-staging-dir</purple> first creates a staging directory and then moves the final result to the destination. iconic behavior honestly. staging first, destination second, no messy half-finished vibes. π
π EXAMPLE π
look at this gorgeous little line:
containers-storage applydiff-using-staging-dir 5891b5b522 /path/to/diff
5891b5b522 is your layer, /path/to/diff is your source. chef's kiss. π
π SEE ALSO π
go read these too, they're all in the same friend group:
containers-storage-apply-diff(1)containers-storage-changes(1)containers-storage-diff(1)containers-storage-diffsize(1)
bestie reminder: everything above is exactly as written in the original β no extra tips, no invented options, just the facts with better energy. π«Ά
and that's the whole page, fr fr. this one's from September 2023, and it's part of the General Commands Manual. mwah, go stage your diffs responsibly. πβ¨ππ¦
π¦ 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