Interview Prep/Docker/Limits, logging, health checks and restarts

Containers should start automatically after a host reboot, but not a one-off debug container.

BeginnerScenarioLimits, logging, health checks and restarts
Answer

Situation read → Restart policies plus the Docker service enabled.

What I'd do → systemctl enable docker, run services with --restart unless-stopped, debug containers with --rm and no policy. Check with docker inspect -f '{{.HostConfig.RestartPolicy.Name}}' c.

Why → Restart policy applies when the daemon starts.

Interview tip → live-restore keeps containers up during daemon restarts.

All Docker questions Roadmap: Docker & containers

More on Limits, logging, health checks and restarts