Actions42
- Container Actions
- Image Actions
- Network Actions
- System Actions
- Volume Actions
Image → Tag
AI-generatedSummary
Tag an existing Docker image with a new repository and optional tag name.
Inputs
- sourceImageReference (required) — Existing image reference to tag
- targetRepository (required) — Repository name for the new tag
- targetTag — Tag name for the new image reference
Output shape
image metadata object
Contains details of the newly tagged image, such as its ID and repository tags
Examples
Example 1: Tag alpine:3.20 as myorg/alpine:1.0
sourceImageReference=alpine:3.20, targetRepository=myorg/alpine, targetTag=1.0
Example 2: Tag myapp:dev as myregistry.com/myapp:prod
sourceImageReference=myapp:dev, targetRepository=myregistry.com/myapp, targetTag=prod
Example 3: Tag ubuntu:22.04 with default tag
sourceImageReference=ubuntu:22.04, targetRepository=myrepo/ubuntu, targetTag=latest