Chapter 07

Docker & host analysis

One command surface for remote containers and the local daemon, plus read-only host inspection.

Two kinds of host

Docker commands are addressed through DockerHostRef, which can refer to either:

Local probing (probe_local_docker) tries docker first and then podman, and distinguishes “not installed” from “installed but the daemon is not running”. That distinction matters when diagnosing why a container list is empty.

Container operations

Host analysis

analyze_host performs a read-only inspection of the server: OS, kernel, architecture, installed packages and installed tools. command_help looks up help for a command.

Read-only versus mutating actions

Analysis commands are read-only. Container start, stop, restart, delete and shell access are mutating operations that run immediately; deleting a Kubernetes resource asks for in-app confirmation first.