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/json—ExecRequestonly (stdin closed).application/x-nyxd-exec+v1— first line is JSONExecRequest(argv, optionaltty, optionalrows/cols); remaining bytes stream tocrun execstdin (nyx exec -i).
Request
Responses
- 200
- 400
- 503
Raw command output (stream)
Bad request
Runtime unavailable