containers...taging-dir(1)

πŸ“¦
version 1.63.0 Β· 3 versions
, in ubuntu resolute, ubuntu stonking

✨ 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:

  1. mount the layer read-write and modify its contents directly, or
  2. 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:


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