Remove a docker image or container
type: "io.kestra.plugin.docker.Rm"
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
YES
Docker configuration file.
Docker configuration file that can set access credentials to private container registries. Usually located in ~/.docker/config.json
.
YES
Containers ID's.
List of containers IDs to remove
YES
YES
false
Force.
Use flag --force to remove images and containers
YES
The URI of your Docker host e.g. localhost
YES
Images ID's.
List of images ID's to remove
YES
false
Remove volumes.
Remove volumes associated to the container
YES
The registry authentication.
The auth
field is a base64-encoded authentication string of username: password
or a token.
YES
The identity token.
YES
The registry password.
YES
The registry URL.
If not defined, the registry will be extracted from the image name.
YES
The registry token.
YES
The registry username.