Remove a Docker image or container.
type: "io.kestra.plugin.docker.Rm"Examples
Remove multiple docker containers
id: docker_remove_containers
namespace: company.team
tasks:
- id: remove_containers
type: io.kestra.plugin.docker.Rm
force: true
containerIds:
- 947795c71c71
- 5ad36bff753e
Properties
config stringobject
Docker configuration file.
Docker configuration file that can set access credentials to private container registries. Usually located in ~/.docker/config.json.
containerIds array
Container IDs
List of container IDs to remove
credentials Credentials
force booleanstring
falseForce
Use flag --force to remove images and containers
host string
The URI of your Docker host e.g. localhost
imageIds array
Image IDs
List of image IDs to remove
removeVolumes booleanstring
falseRemove volumes
Remove volumes associated with the container
Definitions
Credentials for a private container registry.
auth string
The registry authentication.
The auth field is a base64-encoded authentication string of username: password or a token.
identityToken string
The identity token.
password string
The registry password.
registry string
The registry URL.
If not defined, the registry will be extracted from the image name.
registryToken string
The registry token.
username string
The registry username.