The default pullPolicy for Docker-based tasks changed
Overview
Due to the new Docker Hub pull usage and limits, all the Docker-based Kestra tasks have their default pullPolicy
updated from ALWAYS
to IF_NOT_PRESENT
to avoid any pull limit issue. Read more about the change in the GitHub issue.
Previously, the following flow would have the pullPolicy
default to ALWAYS
:
id: docker_script_runnernamespace: company.team
tasks: - id: shell type: io.kestra.plugin.scripts.shell.Commands containerImage: centos taskRunner: type: io.kestra.plugin.scripts.runner.docker.Docker cpu: cpus: 1 commands: - echo "Hello World!"
Now, the plugin defaults to IF_NOT_PRESENT
. This also applies to all other Docker-based tasks from the plugin-docker
group, such as io.kestra.plugin.docker.Run
.