Docker Stats and Inspect
Observe CPU, memory, and low-level container metadata.
- docker stats
- docker inspect
- docker top
- OOM killed
- container metrics
Docker Stats and Inspect
Observe CPU, memory, and low-level container metadata.
Commands
| Command | What it does |
|---|---|
docker stats | Live CPU/mem per container |
docker stats --no-stream | One-shot snapshot |
docker inspect <c> | Full JSON: mounts, network, config |
docker top <c> | Processes running inside |
docker port <c> | Show published port mappings |
Example
docker stats --no-stream
docker inspect api | grep -A3 Mounts
docker top api
FAQ
Container OOM-killed — how to confirm?
docker inspect shows OOMKilled: true; raise --memory or fix the leak, then set a limit so one container cannot take the host.
stats vs top?
stats = resource usage from the host view; top = process list from inside the container.
자주 묻는 질문
Container OOM-killed — how to confirm?
docker inspect shows OOMKilled: true; raise --memory or fix the leak, then set a limit so one container cannot take the host.
stats vs top?
stats = resource usage from the host view; top = process list from inside the container.
Docker
Docker Install and Setup
Verify the Docker engine, configure context, and check versions.
Docker Images
Pull, list, tag, inspect, and remove images confidently.
Docker Containers
Run, list, stop, and clean up containers in daily work.
Docker Run Options
The flags that matter: detach, ports, env, volumes, limits.