klee image tag

Rename an image

Usage

$ klee image tag [OPTIONS] SOURCE_IMAGE NAMETAG

Refer to the options section for an overview of available OPTIONS for this command.

Description

Redefine the nametag of an image where NAMETAG follows the name:tag format. If :tag is omitted, :latest is assumed.

A nametag may contain lowercase and uppercase letters, digits, underscores, periods and dashes. A nametag may not start with a period or a dash and may contain a maximum of 128 characters.

For example uses of this command, refer to the examples section below.

Options

Name, shorthand Default Description
--help Show this message and exit.

Examples

Tag an image referenced by ID

To tag an image with ID “2e91f95bf959”:

$ klee tag 0e5574283393 13.2-STABLE/base

Note that since a tag is not specified Kleened sets it to latest, i.e., 13.2-STABLE/base:latest.

Tag an image referenced by name

To tag a local image with FreeBSD additional releng REVISION information:

$ klee tag FreeBSD-13.1-RELEASE FreeBSD-13.1-RELEASE:fc952ac2212

Note that since a tag is not specified Kleened sets it to latest.

Tag an image referenced by nametag

Re-tag an image and replace tag “test” with “version1.0.test”:

$ docker tag nginx:test nginx:version1.0.test

Parent command

Command Description
klee image Manage images