umoci-config - Man Page

Modifies the configuration of an OCI image

Aleksa Sarai DECEMBER 2016

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]

Description

Modify the configuration and manifest data for a particular tagged OCI image -- overwriting it unless you specify --tag. If --no-history was not specified, a history entry is appended to the tagged OCI image for this change (with the various --history. flags controlling the values used). To view the history, see umoci-stat(1).

Note that the original image tag (the argument to --image) will not be modified unless the target of umoci-config(1) is the original image tag.

Options

The global options are defined in umoci(1).

--image=image[:tag]

The source tagged OCI image whose config will be modified. image must be
 a path to a valid OCI image and tag must be a valid tag in the image. If
 tag is not provided it defaults to "latest".

--tag=new-tag

Tag name for the modified image, if unspecified then the original tag
 provided to --image will be clobbered.

--no-history

Causes no history entry to be added for this operation.

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

CreatedBy entry 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 of
 umoci-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 (see
 date(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 of umoci-config(1)).
 The valid values of value are:

* config.labels
* manifest.annotations
* config.exposedports
* config.env
* config.entrypoint
* config.cmd
* config.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⟩.

Example

The following modifies an OCI image configuration in various ways, and overwrites the original tag with the new image.

% 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

umoci(1)

Referenced By

umoci(1), umoci-init(1), umoci-insert(1), umoci-new(1), umoci-raw-add-layer(1), umoci-repack(1).

umoci config -