Expand description
Container name resolution for Docker/Podman.
Resolves process PIDs to container names using:
- Linux:
/proc/{pid}/cgroupโ container ID โdocker pslookup - macOS:
docker pswith PID matching viadocker inspect
All lookups are batched per refresh cycle to minimize CLI overhead. Missing Docker/Podman is handled gracefully (empty results, no errors).
Functionsยง
- has_
containers - Check if any entries have container names (used for adaptive column).
- resolve_
container_ names - Resolve container names for a batch of PIDs.