Interview Prep/Docker/Image Security & Hardening

What does a custom seccomp profile give you, and how do you create one?

AdvancedProductionImage Security & Hardening
Answer

It narrows the syscall surface below Docker's default allow-list. Record syscalls an app uses (strace, oci-seccomp-bpf-hook, Inspektor Gadget advise seccomp-profile), generate an allow-list with defaultAction: SCMP_ACT_ERRNO, test under load, then apply with --security-opt seccomp=profile.json. Always test paths like startup, shutdown, and error handling to avoid a production EPERM.

All Docker questions Roadmap: Docker & containers

More on Image Security & Hardening