Docker
Cheat sheet · https://pcornel.dk/topic.php?topic=2890
Answer
Docker is a container engine: dockerd manages images, containers, networks and volumes through containerd and runc, controlled with the docker CLI.
Remember
The docker group grants root-equivalent access. Docker publishes ports with its own iptables rules that can bypass host firewalls (use the DOCKER-USER chain). Clean up with docker system prune carefully.
First checks
docker ps -a / podman ps -a— containers and statedocker logs <c>— container outputdocker inspect <c>— configuration, mounts, networkdocker info— engine, storage driver, cgroup version
Commands
docker rundocker psdocker logs -f --since 10m web1docker exec -it web1 shdocker stats --no-streamdocker inspect web1docker stop web1 && docker rm web1docker inspectdocker
Verify in this order
docker CLI → dockerd → containerd → runc starts the container
Where it usually breaks
First mismatch in hardware/kernel capability → scheduler/mm/device → cgroup/namespace → process/thread → service/runtime → workload behavior/counters; preserve identity/native diagnostic/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2890