docker image tag

docker image tag

Description

Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE

Usage

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

Parent command

Command Description
docker image Manage images

Examples

Tagging an image referenced by ID

To tag a local image with ID “0e5574283393” into the “fedora” repository with “version1.0”:

docker image tag 0e5574283393 fedora/httpd:version1.0

Tagging an image referenced by Name

To tag a local image with name “httpd”