Tags a Docker image with a new name. This operation is local to the Docker environment and does not involve network communication with a registry.
Tags a Docker image with a new name and tag. This operation is local to the Docker environment and does not involve network communication with a registry.
# Arguments
- `image_name::String`: The existing name (and tag) of the Docker image to be tagged. This is the source image name.
- `new_image_name::String`: The new name (and tag) to apply to the image. This name can include a new registry path, repository, and tag.
- `image_name::String`: The name of the Docker image to be tagged. This does not include the tag of the source image.
- `old_tag_name::String`: The existing tag of the Docker image to be tagged. This specifies the exact version of the `image_name` to be used.
- `new_image_name::String`: The new name to apply to the image. This name can include a new registry path and repository but does not include the tag.
- `new_tag_name::String`: The new tag to apply to the image. This specifies the version of the `new_image_name`.
- `auth_token::String=""` (optional): While tagging typically does not require authentication, if this function is part of a broader workflow that includes registry interaction, an auth token can be specified.
# Behavior
- Applies the `new_image_name` to the image identified by `image_name`. If the operation is successful, the image will be available under both the old and new names/tags.
- Applies the `new_image_name` and `new_tag_name` to the image identified by `image_name` and `old_tag_name`. If the operation is successful, the image will be available under both the old name/tag and the new name/tag.