Lessons from running potentially malicious code inside containers
summary
Running untrusted containers exposes specific failures: a fork bomb spawns thousands of processes (observed CPU load ~4,000% with ~7,000 processes, host crashes near 8,000), Docker JSON logs can fill the root partition, and unnamespaced features (host file, net=host, privileged containers) allow reboot or host access. Mitigations used: docker diff to see modified files, enabling log rotation (Docker 1.8+), quota care, bandwidth shaping, and a custom monitor called the warden that watches via the Unix socket and can act even when containers saturate CPU.
AI-written summary · about
