image_tag
Tags an existing Docker image with a registry-qualified repository name, creating an alias without copying data. Prepares images for pushing to a registry.
Instructions
Tag an image into a repository (add a name to an existing local image).
The image id stays the same and no data is copied - a tag is an alias. Typical flow: tag with
the registry-qualified name, then image_push. image_remove on a tag merely untags while
other names remain. Tagging over a name that already exists repoints it, without asking.
Args: id_or_name: The source image name or id repository: Target repository name (registry-qualified for pushing, e.g. "ghcr.io/o/r") tag: Tag for the new image (default "latest")
Returns: bool: True if the image was tagged
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | ||
| id_or_name | Yes | ||
| repository | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |