Docker Tag

Docker Tag

Certified

Retag a Docker image

Creates a new repository: tag for an existing local image using the Docker daemon.

yaml
type: io.kestra.plugin.docker.Tag

Tag an existing Docker image

yaml
id: tag_image
namespace: company.team

tasks:
  - id: tag
    type: io.kestra.plugin.docker.Tag
    sourceImage: my-app:build-123
    targetImage: my-registry.example.com/prod/my-app:1.0.0
Properties

Source image

Existing image name or ID to retag.

Target image

Repository and tag to create; defaults to latest if no tag is provided.

Docker configuration file

Docker configuration file that can set access credentials to private container registries. Usually located in ~/.docker/config.json.

Credentials for a private container registry

Definitions
authstring

The registry authentication.

The auth field is a base64-encoded authentication string of username: password or a token.

identityTokenstring

The identity token.

passwordstring

The registry password.

registrystring

The registry URL.

If not defined, the registry will be extracted from the image name.

registryTokenstring

The registry token.

usernamestring

The registry username.

The URI of your Docker host e.g. localhost

Reference (ref) of the pluginDefaults to apply to this task.