A container starts, disappears, and comes back with the same error. The tempting fix is another restart. Before doing that, find out what made the process exit. A bad configuration, a full filesystem and a killed process can all produce the same Restarting status, but need different repairs. This guide is for a Linux home server running standalone Docker Engine and Docker Compose v2. The shell examples use Bash and GNU tools, as found on Ubuntu and Debian. Docker Desktop, Swarm and Kubernetes have different storage or restart behaviour. Start here: read the last application error, check the exit state, then compare it with events and host resources. Keep the container and its data in place while gathering evidence. Removing it can discard the logs and writable-layer files you need. On this page Capture the failure Read the status and exit code Check memory and exit code 137 Check storage, configuration and permissions Check dependencies and networking Apply a Compose fix c...
Practical Linux homelab security notes from real old hardware, real Docker hosts, real firewall rules, real mistakes, and boring setups that keep working.