📖 ~1 min read
Table of contents
Symptom & Impact
Containers stop running because Docker daemon fails to start after config changes.
Environment & Reproduction
Ubuntu 24.04 with Docker Engine and custom /etc/docker/daemon.json settings.
Root Cause Analysis
Daemon cgroup driver conflicts with host systemd/cgroup v2 expectations.
Quick Triage
Check docker service logs and current cgroup mode reported by kernel.
sudo systemctl status docker -l; stat -fc %T /sys/fs/cgroup
Step-by-Step Diagnosis
Validate daemon.json syntax and inspect conflicting runtime/cgroup flags in logs.
sudo dockerd --validate --config-file /etc/docker/daemon.json; sudo journalctl -u docker --since '1 hour ago'

Solution – Primary Fix
Set Docker to systemd cgroup driver and restart daemon after config validation.
Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.
sudo jq '. + {"exec-opts":["native.cgroupdriver=systemd"]}' /etc/docker/daemon.json | sudo tee /etc/docker/daemon.json >/dev/null && sudo systemctl restart docker

Solution – Alternative Approaches
Migrate workloads to containerd-managed runtime with explicit cgroup config.
Verification & Acceptance Criteria
docker info shows expected cgroup driver and containers start successfully.
Rollback Plan
Restore previous daemon.json and restart docker to prior known-good state.
Prevention & Hardening
Control daemon.json through configuration management and validate pre-deploy.
Related Errors & Cross-Refs
Related to Kubernetes kubelet cgroup driver mismatch on hybrid nodes.
Related tutorial: View the step-by-step tutorial for Ubuntu 24.04 LTS.
View all Ubuntu 24.04 LTS tutorials on the Tutorials Hub →
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
Docker daemon configuration docs and Ubuntu container stack guidance.
Need Expert Help?
If you cannot resolve this yourself, our team offers hands-on Server Management, Managed IT Services, and flexible Support Plans. Contact us today — we respond within one business day.