Run
yaml
type: "io.kestra.plugin.docker.run"
Examples
yaml
id: docker_run
namespace: company.team
tasks:
- id: run
type: io.kestra.plugin.docker.Run
containerImage: docker/whalesay
commands:
- cowsay
- hello
yaml
id: docker_run
namespace: company.team
tasks:
- id: run
type: io.kestra.plugin.docker.Run
containerImage: docker/whalesay
yaml
id: docker_run
namespace: company.team
tasks:
- id: write
type: io.kestra.plugin.core.storage.Write
content: |
extensions:
health_check: {}
receivers:
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317
http:
endpoint: 0.0.0.0:4318
exporters:
debug: {}
service:
pipelines:
logs:
receivers: [otlp]
exporters: [debug]
extension: .yaml
- id: run
type: io.kestra.plugin.docker.Run
containerImage: otel/opentelemetry-collector:latest
inputFiles:
otel.yaml: "{{ outputs.write.uri }}"
commands:
- --config
- otel.yaml
portBindings:
- "4318:4318"
wait: false
yaml
id: docker_run_with_output_file
namespace: company.team
inputs:
- id: greetings
type: STRING
defaults: HELLO WORLD !!
tasks:
- id: docker_run_output_file
type: io.kestra.plugin.docker.Run
containerImage: ubuntu:22.04
commands:
- "/bin/sh"
- "-c"
- echo {{ inputs.greetings }} > file.txt
outputFiles:
- file.txt
- id: log
type: io.kestra.plugin.core.log.Log
message: "{{ read(outputs.docker_run_output_file.outputFiles['file.txt']) }}"
Properties
containerImage *Requiredstring
commands array
SubType string
Default
[]
config stringobject
cpu Non-dynamicCpu
credentials Credentials
entryPoint array
SubType string
env object
SubType string
extraHosts array
SubType string
host string
inputFiles objectstring
memory Non-dynamicMemory
namespaceFiles Non-dynamicNamespaceFiles
networkMode string
outputFiles array
SubType string
portBindings array
SubType string
privileged booleanstring
pullPolicy string
Default
IF_NOT_PRESENT
Possible Values
IF_NOT_PRESENT
ALWAYS
NEVER
shmSize string
user string
volumes array
SubType string
wait booleanstring
Default
true
Outputs
exitCode integer
Default
0
outputFiles object
SubType string
taskRunner TaskRunnerDetailResult
vars object
Definitions
io.kestra.core.models.tasks.NamespaceFiles
enabled booleanstring
Default
true
exclude array
SubType string
folderPerNamespace booleanstring
Default
false
ifExists string
Default
OVERWRITE
Possible Values
OVERWRITE
FAIL
WARN
IGNORE
include array
SubType string
namespaces array
SubType string
Default
["{{flow.namespace}}"]
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
io.kestra.core.models.tasks.runners.TaskRunnerDetailResult
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