Docker tag: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
Line 8: Line 8:


Create a [[Docker_Concepts#Tag|tag]] ''target-image'' that refers to ''source-image''.
Create a [[Docker_Concepts#Tag|tag]] ''target-image'' that refers to ''source-image''.
=Removing a Tag=
If an image is tagged by more than one tag, Docker rmi will remove the tag but not the image:
docker rmi my-image:redundat-tag

Revision as of 21:30, 16 August 2019

Internal

Overview

docker tag source-image[:tag] target-image[:tag]

Create a tag target-image that refers to source-image.

Removing a Tag

If an image is tagged by more than one tag, Docker rmi will remove the tag but not the image:

docker rmi my-image:redundat-tag