Container stats
Live resource stats for a container. Requires the **viewer** role.
In: cookie
Path Parameters
The container's id or name.
Response Body
application/json
application/json
curl -X GET "https://example.com/api/containers/string/stats"[ { "id": "string", "cpuUsageUsec": 0, "memoryUsageBytes": 0, "memoryLimitBytes": 0, "blockReadBytes": 0, "blockWriteBytes": 0, "networkRxBytes": 0, "networkTxBytes": 0, "numProcesses": 0 }]Container run spec GET
A container's current configuration, rebuilt into the shape `POST /api/containers` accepts, so a container can be recreated or edited from what it runs today. The daemon parses each engine's own inspect output, so this response is the same shape for every container engine. Requires the **viewer** role.
Container stats history GET
The sampled history behind the container charts, oldest sample first. The daemon samples every five seconds while a stats stream is open or a history read came in during the last minute, so a first read can return `collecting` with no samples. Requires the **viewer** role.