umoci-config(1)(#)
β¨ umoci-config(1) β¨
okay bestie, welcome to the umoci manual π this one's all about umoci-config β the config page, she's a whole vibe.
Aleksa Sarai wrote this, back in DECEMBER 2016 π
πΈ NAME πΈ
umoci config β Modifies the configuration of an OCI image π
β¨ SYNOPSIS β¨
umoci config --image=image[:tag] [--tag=new-tag] [--no-history]
[--history.comment=comment] [--history.created_by=created_by]
[--history.author=author] [--history-created=date] [--clear=value]
[--config.user=value] [--config.exposedports=value] [--config.env=value]
[--config.entrypoint=value] [--config.cmd=value] [--config.volume=value]
[--config.label=value] [--config.workingdir=value] [--created=value]
[--author=value] [--platform.os=value] [--platform.arch=value]
[--manifest.annotation=value]
likeβ¦ look at her. so many flags. we love a girl with options π
π¦ DESCRIPTION π¦
So what does this actually do? It modifies the configuration and manifest data for a particular tagged OCI image β and it overwrites it unless you specify --tag. no cap. π
If --no-history was not specified, a history entry gets appended to the tagged OCI image for this change β and the various --history. flags are the ones controlling the values used for that entry. Wanna go look at the history later? See umoci-stat(1). π
ngl, important one: the original image tag (aka the argument you hand to--image) will not be modified unless the target ofumoci-config(1)is the original image tag. read that twice bestie, i'm serious π
π OPTIONS π
The global options are defined in umoci(1). β¨
--image=image[:tag]β The source tagged OCI image whose config will be modified.imagemust be a path to a valid OCI image, andtagmust be a valid tag in the image. Iftagis not provided it defaults to"latest". π--tag=new-tagβ Tag name for the modified image. If unspecified, then the original tag you handed to--imagewill be clobbered. π--no-historyβ Causes no history entry to be added for this operation. she's lowkey mysterious, no receipts kept π«Ά--history.comment=commentβ Comment for the history entry corresponding to this modification of the image configuration. If unspecified,umoci(1)will generate an implementation-dependent value. π¦--history.created_by=created_byβCreatedByentry for the history entry corresponding to this modification of the image configuration. If unspecified,umoci(1)will generate an implementation-dependent value. β¨--history.author=authorβ Author value for the history entry corresponding to this modification of the image configuration. 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β Creation date for the history entry corresponding to this modifications of the image configuration. This must be an ISO8601 formatted timestamp (seedate(1)). If unspecified, the current time is used. β°--clear=valueβ Removes all pre-existing entries for a given set or list configuration option (it will not undo any modification made by this call ofumoci-config(1)). The valid values ofvalueare: π§Ήconfig.labelsmanifest.annotationsconfig.exposedportsconfig.envconfig.entrypointconfig.cmdconfig.volume
The following commands all set their corresponding values in the configuration or image manifest. For more information see the OCI image specification β¨https://github.com/opencontainers/image-specβ©. π
--config.user=value--config.exposedports=value--config.env=value--config.entrypoint=value--config.cmd=value--config.volume=value--config.label=value--config.workingdir=value--created=value--author=value--platform.os=value(can also be set with--os)--platform.arch=value(can also be set with--architecture)--manifest.annotation=value
π EXAMPLE π
The following modifies an OCI image configuration in various ways, and overwrites the original tag with the new image. main character behaviour fr fr π₯
% umoci config --image image:tag --clear=config.env --config.env="VARIABLE=true" \
--config.user="user:group" --config.entrypoint=cat --config.cmd=/proc/self/stat \
--config.label="com.cyphar.umoci=true" --author="Aleksa Sarai <cyphar@cyphar.com>" \
--platform.os="linux" --platform.arch="amd64" --created="$(date --iso-8601=seconds)"
π«Ά SEE ALSO π«Ά
okay that's the whole page, you ate that π this was config from the umoci manual β page umoci-config(1)(#) β and the date on it is DECEMBER 2016 β¨ go forth and configure, bestie π
π¦ 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