Skip to main content
InterviewHubPRO
Section Overview
Q32

Question 32 of 50

Part 3: Advanced Internals, Scale & Production Security (Senior / Lead)

64%
Docker & Containers (50 Qs)•Part 3: Advanced Internals, Scale & Production Security (Senior / Lead)

Docker Daemon Configuration (`daemon.json`): Live-Restore, Default Address Pools, and Logging Drivers.

senior LevelMost AskedCode ExampleSecurity & AuthDocker & ContainersHTTP & REST APIs

In Simple Words: The /etc/docker/daemon.json file configures the host-level Docker engine. Key production settings:

json
{
  "live-restore": true,
  "default-address-pools": [
    {"base": "10.200.0.0/16", "size": 24}
  ],
  "log-driver": "json-file",
  "log-opts": {
    "max-size": "50m",
    "max-file": "3"
  },
  "no-new-privileges": true,
  "storage-driver": "overlay2"
}
  • live-restore: true: Keeps containers running during Docker daemon updates or crashes, preventing service downtime.
  • default-address-pools: Prevents Docker bridge networks (172.17.0.0/16) from conflicting with corporate VPNs or cloud VPC CIDRs.
  • no-new-privileges: true: Prevents child processes inside containers from acquiring additional privileges via setuid binaries (e.g. sudo).