Docker tag: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
=External= | |||
* https://docs.docker.com/engine/reference/commandline/tag/ | |||
=Internal= | =Internal= | ||
* [[Docker Concepts#Tag|Docker Concepts - Tag]] | * [[Docker Concepts#Tag|Docker Concepts - Tag]] | ||
* [[docker rmi]] | |||
=Overview= | =Overview= | ||
Line 8: | Line 12: | ||
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 | |||
Untagged my-image:redundat-tag |
Latest revision as of 23:31, 10 November 2020
External
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 Untagged my-image:redundat-tag