LinuxCommandLibrary

docker-tag

Assign tags to existing Docker images.

TLDR

Assign a name and tag to a specific image ID

$ docker tag [id] [name]:[tag]
copy


Assign a tag to a specific image
$ docker tag [image]:[current_tag] [image]:[new_tag]
copy


Display help
$ docker tag
copy

SYNOPSIS

docker tag SOURCE_IMAGE[:TAG] TARGET_IMAGE[:TAG]

DESCRIPTION

Alias for docker image tag.

OPTIONS

-h, --help[=false] help for tag

SEE ALSO

docker(1)

Copied to clipboard