umoci-raw-add-layer(1)(#)
β¨ umoci-raw-add-layer β¨
okay bestie, welcome to umoci-raw-add-layer(1) β the add-layer page from the umoci manual, written by Aleksa Sarai back in SEPTEMBER 2018. she's giving very specific, very expert energy, and we're gonna go through her together π
π NAME π
umoci raw add-layer β add a layer archive verbatim to an image
π¦ SYNOPSIS π¦
umoci raw add-layer --image=image [--tag=tag] [--compress=compression-type]
[--no-history] [--history.comment=comment] [--history.created_by=created_by]
[--history.author=author] [--history-created=date] new-layer.tar
πΈ DESCRIPTION πΈ
so basically, this adds the uncompressed layer archive that new-layer.tar points at verbatim to the image. and when we say verbatim we mean verbatim verbatim β no changes get made to the layer at all, which means any OCI-specific tar extensions (like .wh. whiteout files, yes those) get included unmodified. no touchy, no fixy.
because of that whole "we will not be editing anything for you" situation, this command is only recommended for expert users. if you're newer to all this, bestie, please go look at umoci-repack(1) to create your layers instead β she's got you π«Ά
and at the moment? umoci raw add-layer only supports appending layers to the end of the image layer list. that's it, that's the whole vibe. no inserting in the middle, no rearranging. end of the line only, periodt.
π OPTIONS π
the global options are defined over in umoci(1), so go say hi to her too.
--image=image[:tag]β the source tag to use as the base of the image that's gonna be holding the new layer.imagehas to be a path to a valid OCI image, andtaghas to be a valid tag in the image. if you don't hand over atag, it defaults to"latest"π«--tag=tagβ the destination tag to use for the newly created image.taghas to be a valid tag in the image. if you don't providetag, it defaults to the tag you specified in--imageβ which means it's overwriting it π--compress=compression-typeβ tell it what compression type to use when it's creating a new layer. the supported compression types arenone,gzip, andzstd. andumoci-unpack(1)transparently supports all the compression methods you can specify with--compress, so she's flexible like that β¨ the special valueautomakesumoci(1)auto-select the most appropriate compression algorithm based on what the previous layers are compressed with β it'll try to use the most recent layer's compression algorithm, as long as it supports it. but heads up:autowill never picknonecompression on its own, because not compressingtar(1)archives is, and I quote, really not advisable π if nocompression-typeis provided, it defaults toauto.--no-historyβ causes no history entry to be added for this operation. this is not recommended for use withumoci-raw-add-layer(1), because it results in the history not including all of the image layers β which will cause confusion with tools that look at image history. so like, don't, unless you know exactly why you're doing it π«--history.comment=commentβ the comment for the history entry that corresponds to this modification of the image. if you leave it unspecified,umoci(1)will generate an implementation-dependent value for you.--history.created_by=created_byβ theCreatedByentry for the history entry corresponding to this modification of the image. if unspecified,umoci(1)will generate an implementation-dependent value.--history.author=authorβ the author value for the history entry corresponding to this modification of the image. if unspecified, this value will be the image's author value after any modifications were made by this call ofumoci-config(1).--history-created=dateβ the creation date for the history entry corresponding to this modification of the image. this has to be an ISO8601 formatted timestamp (seedate(1)). if unspecified, the current time is used β°
π EXAMPLE π
the following takes an existing diff directory, creates a new archive from it, and then inserts it into an existing image. note that the new archive is not compressed β umoci will compress the archive for you, she's got it like that π
% tar cfC diff-layer.tar diff/ .
% umoci raw add-layer --image oci:foo diff-layer.tar
π SEE ALSO π
and that's the whole page, bestie π this one came from the umoci source, section raw, dated SEPTEMBER 2018, and it lives under the name umoci-raw-add-layer(1) β so if you ever need to find her again, that's the address. go forth and append layers, but like, carefully β¨π¦
π¦ where this page comes from
- arch rolling: umoci 0.6.0-1 Β· Apache-2.0
- fedora 43: umoci 0.6.0-1.fc43 Β· Apache-2.0 AND MIT AND BSD-2-Clause AND BSD-3-Clause AND ISC
- fedora 44: umoci 0.6.0-3.fc44 Β· Apache-2.0 AND MIT AND BSD-2-Clause AND BSD-3-Clause AND ISC
- nixos 26.05: umoci 0.6.0
- nixpkgs unstable: umoci 0.6.0
- ubuntu stonking: umoci 0.6.0+ds-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms