You are viewing the docs for v1.3, which is not the latest release.
View latest

Default Docker pullPolicy for Tasks Changed to IF_NOT_PRESENT

For the complete documentation index, see llms.txt. For a full content snapshot, see llms-full.txt. Append .md to any kestra.io/docs/* URL for plain Markdown.

The default pullPolicy for Docker-based tasks changed

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:

yamlid: docker_script_runner
namespace: 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.

Default Docker Runner Pull Policy