LOGBOOK

HELP

Quiz Entry - updated: 2026.12.01

Which hardening keys go in /etc/docker/daemon.json, and what does each do? (icc, no-new-privileges, userland-proxy, live-restore, default-ulimits, log-driver)

They harden the daemon: icc:false blocks default inter-container chatter, no-new-privileges stops setuid escalation, userland-proxy:false shrinks the attack surface, plus logging, resource and availability settings.

The daemon is the heart of the Docker engine; whoever controls it controls the host, so its config matters.

Key Effect
icc: false Disables inter-container communication on the default docker0 network, so containers must be placed on an explicit network to talk — a container can no longer sniff others' traffic by default.
no-new-privileges: true Prevents processes in containers from gaining more privileges via the setuid (s-bit) mechanism.
userland-proxy: false Turns off Docker's userland proxy for port forwarding, using hairpin NAT (iptables) instead — better performance and a smaller attack surface (one fewer component).
live-restore: true Keeps containers running if the daemon stops (e.g. for maintenance), instead of killing them — important for production uptime.
default-ulimits Default resource limits (e.g. nofile) for all containers — a first line against resource exhaustion/DoS.
log-driver / log-opts Where and how container logs go (e.g. json-file with size/rotation, or shipped to a central log server).

After editing, the file must be valid JSON or the daemon won't restart (systemctl restart docker). (The lab's file also keeps a registry-mirrors entry for caching pulls — unrelated to security but must not be deleted.) Re-running Security Bench afterwards flips most daemon-configuration checks to PASS.

Go deeper:

From Quiz: ISLAB / Docker Security | Updated: Dec 01, 2026