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

Containers ID's.

List of containers 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

Images ID's.

List of images ID's to remove

Default false

Remove volumes.

Remove volumes associated to 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.