Skip to content

Latest commit

 

History

History
14 lines (8 loc) · 433 Bytes

File metadata and controls

14 lines (8 loc) · 433 Bytes

Provide new tag to docker image

docker tag {{EXISTING_IMAGE_NAME[:TAG]}} {{NEW_IMAGE_NAME[:TAG]}}}

  • EXISTING_IMAGE_NAME[:TAG]: Name with tag or image id of the image
  • NEW_IMAGE_NAME[:TAG]: New name for the existing image. If [:TAG] is not provided, by default :latest tag will be added.

Example:

docker tag ubuntu:latest ubuntu:new

Related Commands