Interview Prep/Docker/Image Security & Hardening

How do you stop a compromised container from phoning home?

IntermediateProductionImage Security & Hardening
Answer

Put backend services on --internal networks, route outbound traffic through an egress proxy with an allow-list, use host or cloud firewalls on DOCKER-USER chain, and for Kubernetes apply NetworkPolicy or Cilium egress rules. Combine with read-only root and no shell so attackers cannot stage tools.

All Docker questions Roadmap: Docker & containers

More on Image Security & Hardening