Skip to main content

Run a command inside a running container

POST 

/v1/containers/:id/exec

Streams combined stdout/stderr as raw bytes (application/octet-stream). The HTTP connection stays open until the exec completes.

Body variants:

  • application/jsonExecRequest only (stdin closed).
  • application/x-nyxd-exec+v1 — first line is JSON ExecRequest (argv, optional tty, optional rows/cols); remaining bytes stream to crun exec stdin (nyx exec -i).

Request

Responses

Raw command output (stream)