Why My MongoDB Container Refused to Restart (Hint: Check Your Disk)
My MongoDB container wouldn’t restart. No matter what I tried, Docker just threw this back at me: Cannot restart container sudden-mongodb: mkdir /mnt/.../overlay2/.../merged: no space left on device Here’s how I diagnosed it, fixed it, and made sure it won’t happen again. The Symptoms The container was technically “running” but stuck in health: starting status. Docker’s health check kept returning results, but MongoDB itself was in a crash loop. Every restart attempt failed with the same no space left on device error. ...