docker image tag
Table of Contents:
Command Name:
docker image tag
Description:
Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE
Syntax:
easywhatis$ docker image tag --help
Usage: docker image tag SOURCE_IMAGE[:TAG] TARGET_IMAGE[:TAG]
Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE
easywhatis$
Example:
easywhatis$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
busybox latest 83aa35aa1c79 3 weeks ago 1.22MB
easywhatis$ docker image tag busybox busybox:3
easywhatis$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
busybox 3 83aa35aa1c79 3 weeks ago 1.22MB
busybox latest 83aa35aa1c79 3 weeks ago 1.22MB