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:latesttag will be added.
docker tag ubuntu:latest ubuntu:new