.nh .TH umoci-repack(1) # umoci repack - Repacks an OCI runtime bundle into an image tag Aleksa Sarai DECEMBER 2016 .SH NAME .PP umoci repack - Repacks an OCI runtime bundle into an image tag .SH SYNOPSIS .PP \fBumoci repack\fP \fB--image\fP=\fIimage\fP[:\fItag\fP] [\fB--no-history\fP] [\fB--history.comment\fP=\fIcomment\fP] [\fB--history.created_by\fP=\fIcreated_by\fP] [\fB--history.author\fP=\fIauthor\fP] [\fB--history-created\fP=\fIdate\fP] [\fB--refresh-bundle\fP] \fIbundle\fP .SH DESCRIPTION .PP Given a modified OCI bundle extracted with \fBumoci-unpack\fP(1) (at the given path \fIbundle\fP), \fBumoci-repack\fP(1) computes the filesystem delta for the OCI bundle's \fIrootfs\fP\&. The delta is used to generate a delta layer, which is then appended to the original image manifest (that was used as an argument to \fBumoci-unpack\fP(1)) and tagged as a new image tag. Between a call to \fBumoci-unpack\fP(1) and \fBumoci-repack\fP(1) users SHOULD NOT modify the OCI image in any way (specifically you MUST NOT use \fBumoci-gc\fP(1)). .PP All \fB--uid-map\fP and \fB--gid-map\fP settings are implied from the saved values specified in \fBumoci-unpack\fP(1), so they are not available for \fBumoci-repack\fP(1). .PP If \fB--no-history\fP was not specified, a history entry is appended to the tagged OCI image for this change (with the various \fB--history.\fP flags controlling the values used). To view the history, see \fBumoci-stat\fP(1). .PP Note that the original image tag (used with \fBumoci-unpack\fP(1)) will \fBnot\fP be modified unless the target of \fBumoci-repack\fP(1) is the original image tag. .SH OPTIONS .PP The global options are defined in \fBumoci\fP(1). .PP \fB--image\fP=\fIimage\fP[:\fItag\fP] The destination tag for the repacked OCI image. \fIimage\fP must be a path to a valid OCI image (and the same \fIimage\fP used in \fBumoci-unpack\fP(1) to create the \fIbundle\fP) and \fItag\fP must be a valid tag name. If another tag already has the same name as \fItag\fP it will be overwritten. If \fItag\fP is not provided it defaults to "latest". .PP \fB--no-history\fP Causes no history entry to be added for this operation. \fBThis is not recommended for use with umoci-repack(1), since it results in the history not including all of the image layers -- and thus will cause confusion with tools that look at image history.\fP .PP \fB--history.comment\fP=\fIcomment\fP Comment for the history entry corresponding to this modification of the image If unspecified, \fBumoci\fP(1) will generate an implementation-dependent value. .PP \fB--history.created_by\fP=\fIcreated_by\fP CreatedBy entry for the history entry corresponding to this modification of the image. If unspecified, \fBumoci\fP(1) will generate an implementation-dependent value. .PP \fB--history.author\fP=\fIauthor\fP Author value for the history entry corresponding to this modification of the image. If unspecified, this value will be the image's author value \fBafter\fP any modifications were made by this call of \fBumoci-config\fP(1). .PP \fB--history-created\fP=\fIdate\fP Creation date for the history entry corresponding to this modifications of the image. This must be an ISO8601 formatted timestamp (see \fBdate\fP(1)). If unspecified, the current time is used. .PP \fB--refresh-bundle\fP Whether to update the OCI bundle's metadata (i.e. mtree and umoci metadata) after repacking the image. If set, then the new state of the bundle should be equivalent to unpacking the new image tag. .SH EXAMPLE .PP The following downloads an image from a \fBdocker\fP(1) registry using \fBskopeo\fP(1), unpacks it with \fBumoci-unpack\fP(1), modifies it and then repacks it. .PP .RS .nf % skopeo copy docker://opensuse/amd64:42.2 oci:image:latest # umoci unpack --image image bundle # touch bundle/rootfs/a_new_file # umoci repack --image image:new-42.2 bundle .fi .RE .SH SEE ALSO .PP \fBumoci\fP(1), \fBumoci-unpack\fP(1)