What are good defaults for a production `daemon.json`?
IntermediateProductionResource Limits, Health & Reliability
Answer
{
"log-driver": "local",
"log-opts": { "max-size": "20m", "max-file": "5" },
"live-restore": true,
"userland-proxy": false,
"default-ulimits": { "nofile": { "Name": "nofile", "Soft": 65536, "Hard": 65536 } },
"default-address-pools": [{ "base": "10.200.0.0/16", "size": 24 }],
"registry-mirrors": ["https://mirror.internal.example.com"],
"no-new-privileges": true
}
More on Resource Limits, Health & Reliability
How do you set memory and CPU limits, and what happens when they are exceeded?BeginnerWhat is the difference between `--cpus`, `--cpu-shares` and `--cpuset-cpus`?BeginnerWhat does `--memory-reservation` do?AdvancedHow do you diagnose an OOM-killed container?IntermediateWhy do JVM and Node services in containers need explicit memory flags?IntermediateWhat is CPU throttling, and how do you detect it?Advanced