API reference · Schema
PodExecRequest
commandarray of stringrequiredProgram and its arguments, run without a shell (use `["sh", "-c", "…"]` for shell syntax)
1–64 items
working_dirstringDirectory to run in (default: the image’s working directory)
up to 1024 characters
timeout_secondsintegerSeconds to wait for the command (default 30); after that the call returns with `timed_out` true
1–120 · default 30
Example
{
"command": [
"uname",
"-a"
],
"timeout_seconds": 10
}Used by
- Run a command in the pod and wait for it (bounded time and output)
POST /v1/pods/{pod_id}/exec