Source
yaml
id: docker-example
namespace: company.team
tasks:
- id: download
type: io.kestra.plugin.core.http.Download
uri: https://huggingface.co/datasets/kestra/datasets/raw/main/csv/orders.csv
- id: docker
type: io.kestra.plugin.scripts.shell.Commands
inputFiles:
data.csv: "{{ outputs.download.uri }}"
taskRunner:
type: io.kestra.plugin.scripts.runner.docker.Docker
containerImage: ubuntu:latest
commands:
- tail -n +2 data.csv | wc -l
About this blueprint
CLI Docker API
This flow will download a file and run a command in a Docker container. The file will be passed as an input to the Docker container, and the command will take the file as an argument. The list of commands
can comprise of any shell commands, and the Docker container can be any image from Docker Hub or from a private registry.