LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

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.

INSTALL

sudo apt install docker-cli
copy
sudo dnf install docker-cli
copy
sudo pacman -S docker
copy
sudo apk add docker-cli
copy
sudo zypper install docker
copy
brew install docker
copy
nix profile install nixpkgs#docker
copy

SEE ALSO

Copied to clipboard
Kai