Run untrusted code (CI jobs from forks) safely with Docker.
AdvancedScenarioSecurity and scanning
Answer
Situation read → Standard containers share the host kernel.
What I'd do → Use stronger isolation: gVisor (--runtime=runsc), Kata Containers or Firecracker microVMs, ephemeral runners per job, no socket mounts, no secrets for fork PRs, egress filtering and resource limits.
Why → Kernel exploits cross standard container boundaries; sandboxes reduce that surface.
Interview tip → Isolation level should match trust level.
More on Security and scanning
A scan reports 300 CVEs in your base image. How do you triage?IntermediateAdd vulnerability scanning to CI so critical findings block the merge.BeginnerWhy is mounting `/var/run/docker.sock` into a container dangerous?IntermediateA developer asks for `--privileged`. What do you do?IntermediateHarden a container run command for a stateless web API.IntermediateA pentester got root inside a container. How bad is it?Advanced