LinuxCommandLibrary

docker-image-tag

tag Docker images with repository and version identifiers

TLDR

Tag an image

$ docker image tag [source_image] [target_image]:[tag]
copy
Tag with registry prefix
$ docker image tag [image] [registry.example.com/image]:[tag]
copy
Tag by image ID
$ docker image tag [image_id] [repository]:[tag]
copy

SYNOPSIS

docker image tag sourceimage[:tag] targetimage[:tag]

DESCRIPTION

docker image tag creates a tag that refers to an existing image. Tags are references to specific image versions and are used to push images to registries. Multiple tags can point to the same image, allowing different versioning schemes or registry locations without duplicating the image data.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community