Docker Run
Run a Docker container with full control over image, commands, volumes, ports, resources, and GPU access.
Plugin: docker-run
Group: Infrastructure
| Task Type |
|---|
dev.bringup.plugin.docker.run |
Examples
Basic container execution
id: docker-hello
namespace: examples
description: Run a command inside a Docker container
tasks:
- id: run-ubuntu
type: dev.bringup.plugin.docker.run
containerImage: ubuntu:22.04
commands:
- echo "Hello from Docker!"
- cat /etc/os-release
Properties
Common Task Properties
See Shell > Common Task Properties for id, type, description, disabled, timeout, retry, allow_failure, run_if, and worker_group.
Notes
- The container's working directory is automatically set to the workspace (
$PWD), and the workspace is mounted as a volume. - The
--rmflag is always added to clean up the container after execution. - GPU access requires the NVIDIA Container Toolkit to be installed on the worker node.
- Template variables in
containerImageandenvvalues are resolved before execution. - Incompatible configurations (e.g.,
privileged: truewithdeviceRequests) will produce validation warnings.