Skip to main content

Posts

Showing posts from October, 2026

Docker Container Keeps Restarting: Find the Cause and Fix It

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...

Docker Disk Full: Find the Cause and Recover Safely

The dashboard was working yesterday. Today the database keeps restarting, an image update fails halfway through, and Docker says no space left on device . Somewhere in the search results, somebody suggests a prune command with every available flag. That is a good moment to slow down. The server may contain months of monitoring history, a password vault, or the only copy of an application configuration. A full disk needs a short investigation before it needs a cleanup command. This guide walks through that investigation on a Linux home server: identify the full filesystem, find the growing data, recover enough space to operate, and put a limit on whatever caused the problem. The quick answer: check both space and inodes, compare host usage with Docker’s inventory, and reclaim only data you have identified. Container logs, application data and build cache need different fixes. df -hT df -i docker system df -v docker ps -a --size These commands inspect the situation. If Docker is...

Home Server Backup Restore Drill for Docker and VMs

Home Server Backup Restore Drill: Prove Your Docker and VM Backups Actually Work Last updated: October 2026 Tested on: Ubuntu 24.04 LTS, Docker Engine , Docker Compose v2, Proxmox VE ,  A backup is not real because a job says “success”. A backup is real when you can restore it, boot it, log in, see your data, and explain the steps without searching through old browser tabs at midnight. This is the restore drill I would run on a home server that has both Docker services and virtual machines. It is not glamorous. It does not look impressive on a dashboard. It does something more useful: it proves whether your homelab backups actually work. If you are running Docker Compose stacks, Proxmox VMs, databases, reverse proxies, monitoring tools, file shares, DNS services or anything else you would miss if the server died, this drill is worth doing. Backups are only half the system. Restore is the part that tells the truth. Quick answer: how do you prove a home serv...