containers...-apply-diff(1)

✨ containers-storage-apply-diff β€” the manual page ✨

okay so bestie, welcome to the containers...-apply-diff(1) page, from the General Commands Manual section πŸŽ€ buckle up, it's short but it's important.


πŸ’– NAME πŸ’–

containers-storage-apply-diff β€” literally just: apply a layer diff to a layer. that's the whole vibe. πŸ¦‹


🌸 SYNOPSIS 🌸

containers-storage apply-diff [options [...]] layerNameOrID
[referenceLayerNameOrID]

so you're giving it a layer (by name or ID, queen's choice πŸ‘‘), and optionally a reference layer too. options go wherever, we're flexible. πŸ’…


✨ DESCRIPTION ✨

okay so picture this: when a layer is first created, it contains no changes relative to its parent layer. blank slate. clean girl aesthetic. 🌈

so how do you get stuff into 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 what even is a layer diff, you ask? it's a (possibly compressed) tar archive with extra information living in its headers. you can make one by running containers-storage diff or something equivalent. that's it, that's the girl. πŸ“

lowkey important: layer diffs are not typically applied manually. more often they get applied by a tool that's importing an entire image β€” like skopeo. so if you're out here hand-applying diffs, you're kinda doing the most πŸ™ˆ (which, honestly? respect.)

πŸ’… OPTIONS πŸ’…

  • -f, --file filename β€” tells it the name of the file the diff should be read from. and if you don't use this option? it reads the diff from standard input. stdin girlies rise up 🫢

πŸ”₯ EXAMPLE πŸ”₯

here's the moment, the icon, the legend:

containers-storage apply-diff -f 71841c97e320d6cde.tar.gz layer1

that's it. that's the whole thing. ate. πŸ’–


πŸ‘‘ SEE ALSO πŸ‘‘

go read your sisters, they're all iconic:


and that's the page, bestie!! 🌟 this was containers...-apply-diff(1) (general commands manual energy, we love her) and it's dated August 2016 β€” vintage but still serving. go apply some diffs, stay hydrated, and remember: when in doubt, it's probably skopeo doing it for you πŸ’œβœ¨πŸ§š

πŸ“¦ where this page comes from