Run a container
Create and start a container from a `RunSpec`. Requires the **operator** role, or the **admin** role when the spec reaches the host through a host path in `volumes`, any `mounts`, `devices`, or `extraArgs`, an escalating capability in `capAdd`, or a shared host namespace such as host networking. Mounting the host root is refused for every role, and so is sharing a host namespace on OrbStack.
In: cookie
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Everything needed to run a container, mapped to container run flags. Only image is required; every other field defaults.
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/api/containers" \ -H "Content-Type: application/json" \ -d '{ "image": "string" }'{ "id": "string"}