Remove a Docker image or container.

yaml
type: "io.kestra.plugin.docker.Rm"

Remove multiple docker containers

yaml
id: docker_remove_containers
namespace: company.team

tasks:
  - id: remove_containers
    type: io.kestra.plugin.docker.Rm
    force: true
    containerIds:
        - 947795c71c71
        - 5ad36bff753e
Properties

Docker configuration file.

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

SubType string

Container IDs

List of container IDs to remove

Default false

Force

Use flag --force to remove images and containers

The URI of your Docker host e.g. localhost

SubType string

Image IDs

List of image IDs to remove

Default false

Remove volumes

Remove volumes associated with the container

The registry authentication.

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

The identity token.

The registry password.

The registry URL.

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

The registry token.

The registry username.