Prune
Prune.
Task to delete unused containers/images/networks/volumes
type: "io.kestra.plugin.docker.Prune"
Prune all docker images
id: docker_prune_images
namespace: company.team
tasks:
- id: prune_images
type: io.kestra.plugin.docker.Prune
pruneType: IMAGES
dangling: true
YES
BUILD
CONTAINERS
IMAGES
NETWORKS
VOLUMES
Prune type.
Type of docker object you want to prune : - BUILD - CONTAINERS - IMAGES - NETWORKS - VOLUMES
YES
Docker configuration file.
Docker configuration file that can set access credentials to private container registries. Usually located in ~/.docker/config.json
.
YES
YES
false
Dangling.
When set to true, prune only unused and untagged images. When set to false, all unused images are pruned. Meaningful only for IMAGES prune type
YES
The URI of your Docker host e.g. localhost
YES
Label filters.
Prune containers with the specified labels.
YES
Until filter.
Prune containers created before this timestamp Meaningful only for CONTAINERS and IMAGES prune type Can be Unix timestamps, date formatted timestamps, or Go duration strings (e. g. 10m, 1h30m) computed relative to the daemon machine’s time.
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.