Container Runtime
The Container runtime enables launching pods, jobs and services on Kubernetes. It is designed for remote, online execution.
Prerequisites
Supported Python version and required package:
python >= 3.9, <3.13
digitalhub-runtime-container
Install the runtime from PyPI:
Usage overview
Use the Container runtime to run containers on Kubernetes. It exposes a Function of kind container
and several task actions to run jobs, serve services, build images, or deploy workloads.
job
: Execute a container as a one-off jobserve
: Deploy a container as a long-lived servicebuild
: Create a Docker image with custom instructionsdeploy
: Deploy an application workload
To execute a container workload on the platform:
- Create a
Function
resource that references your container image and declares inputs/outputs and callfunction.run()
to execute the workload.
See Examples for code samples.