LinuxCommandLibrary

docker-tag

create tags for Docker images

TLDR

Tag an image

$ docker tag [source_image] [target_image]:[tag]
copy
Tag for private registry
$ docker tag [image] [registry.example.com/image]:[tag]
copy
Tag by image ID
$ docker tag [image_id] [repository]:[tag]
copy
Add latest tag
$ docker tag [image]:[version] [image]:latest
copy

SYNOPSIS

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

DESCRIPTION

docker tag creates a tag that references an existing image. An image can have multiple tags. Tags are used to version images and prepare them for pushing to registries.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community