.nh .TH umoci-tag(1) # umoci tag - Create tags in OCI images Aleksa Sarai DECEMBER 2016 .SH NAME umoci tag \- Create tags in OCI images .SH SYNOPSIS \fBumoci tag\fP \fB--image\fP=\fIimage\fP[:\fItag\fP] \fInew-tag\fP .SH DESCRIPTION Creates a new tag that is a copy of \fItag\fP with the name \fInew-tag\fP\&. If \fInew-tag\fP already exists, it will be replaced. The original \fItag\fP will be unchanged. .SH OPTIONS \fB--image\fP=\fIimage\fP[:\fItag\fP] The source OCI image tag to create a copy of. \fIimage\fP must be a path to a valid OCI image and \fItag\fP must be a valid tag in the image. If \fItag\fP is not provided it defaults to "latest". .SH EXAMPLE The following swaps two image tags in an OCI image. .EX % umoci tag --image image:to-change new % umoci tag --image image:latest to-change % umoci tag --image image:new latest % umoci rm --image image:new .EE .SH SEE ALSO \fBumoci\fP(1), \fBumoci-remove\fP(1)