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.
More on Image Security & Hardening
Why should containers not run as root, and how do you enforce it?BeginnerWhat is a distroless image and what are the trade-offs?BeginnerHow do you scan an image with Trivy and fail a CI build on serious findings?BeginnerHow do you manage Trivy false positives and accepted risks?IntermediateWhich `docker run` flags make up a hardened runtime baseline?BeginnerWhat does `no-new-privileges` protect against?Beginner