yaml
type: "io.kestra.plugin.scripts.runner.docker.docker"
Examples
yaml
id: simple_shell_example
namespace: company.team
tasks:
- id: shell
type: io.kestra.plugin.scripts.shell.Commands
taskRunner:
type: io.kestra.plugin.scripts.runner.docker.Docker
commands:
- echo "Hello World"
yaml
id: shell_example_with_files
namespace: company.team
inputs:
- id: file
type: FILE
tasks:
- id: shell
type: io.kestra.plugin.scripts.shell.Commands
inputFiles:
data.txt: "{{ inputs.file }}"
outputFiles:
- "*.txt"
containerImage: centos
taskRunner:
type: io.kestra.plugin.scripts.runner.docker.Docker
commands:
- cp {{ workingDir }}/data.txt {{ workingDir }}/out.txt
yaml
id: allocate_memory_to_python_script
namespace: company.team
tasks:
- id: script
type: io.kestra.plugin.scripts.python.Script
taskRunner:
type: io.kestra.plugin.scripts.runner.docker.Docker
pullPolicy: IF_NOT_PRESENT
cpu:
cpus: 1
memory:
memory: "512Mb"
containerImage: ghcr.io/kestra-io/kestrapy:latest
script: |
from kestra import Kestra
data = dict(message="Hello from Kestra!")
Kestra.outputs(data)
Properties
config stringobject
cpu Non-dynamicCpu
credentials Credentials
delete booleanstring
Default
true
entryPoint array
SubType string
Default
[
""
]
extraHosts array
SubType string
fileHandlingStrategy string
Default
VOLUME
Possible Values
MOUNT
VOLUME
host string
killGracePeriod Non-dynamicstring
Default
PT0S
Format
duration
memory Non-dynamicMemory
networkMode string
portBindings array
SubType string
privileged booleanstring
pullPolicy string
Default
IF_NOT_PRESENT
Possible Values
IF_NOT_PRESENT
ALWAYS
NEVER
shmSize string
user string
version Non-dynamicstring
Validation RegExp
\d+\.\d+\.\d+(-[a-zA-Z0-9-]+)?|([a-zA-Z0-9]+)
volumes array
SubType string
wait booleanstring
Default
true
Definitions
io.kestra.plugin.scripts.runner.docker.Cpu
cpus numberstring
io.kestra.plugin.scripts.runner.docker.Memory
kernelMemory string
memory string
memoryReservation string
memorySwap string
memorySwappiness string
oomKillDisable booleanstring
Credentials for a private container registry.
auth string
identityToken string
password string
registry string
registryToken string
username string
A request for devices to be sent to device drivers.
capabilities array
SubType array
count integerstring
deviceIds array
SubType string
driver string
options object
SubType string