docker tag creates or updates a tag that refers to an existing container image. Include the registry URL when preparing an image for publication. section 3.9.2
Use the command as follows:
- docker tag <existing-image> <registry-url>/<image-name>:<version> section 3.9.2
- Verify the new reference with docker image list; Docker adds a tag without creating another image, so the unique image ID remains the same. section 3.9.2
- Push the registry-qualified tag with docker push after authentication with docker login. section 3.9.2
Tag an image for a private registry
docker tag video-streaming bmdk1.azurecr.io/video-streaming:1 docker push bmdk1.azurecr.io/video-streaming:1 section 3.9.2
docker tag <existing-image> <registry-url>/<image-name>:<version>
Inspect the canonical command shape before substituting an existing image, registry URL, image name, and version. section 3.9.2
