How do you manage Docker daemon configuration across a fleet?
IntermediateScenarioCI/CD and production rollouts
Answer
Situation read → Consistency of daemon.json.
What I'd do → Manage with Ansible/Terraform/cloud-init, version in git, validate with dockerd --validate --config-file /etc/docker/daemon.json, and roll changes in batches. Many settings need a restart; use live-restore to reduce impact.
Why → Drift in log options or address pools causes outages.
Interview tip → Test config before restart; a bad JSON stops dockerd.
More on CI/CD and production rollouts
Design a GitHub Actions workflow that builds, scans and pushes an image.IntermediateZero-downtime deploy on a single Docker host.AdvancedDeploy via GitOps with image digests.IntermediateCanary a new image on a Swarm service.AdvancedDocker build is flaky in CI due to network errors on package installs.IntermediateRun database migrations in the deploy flow of containerized apps.Intermediate