Interview Prep/Docker/Security and scanning

Detect drift: a running container behaves differently than its image.

AdvancedScenarioSecurity and scanning
Answer

Situation read → Possible compromise or unmanaged changes.

What I'd do → docker diff, compare running processes (docker top), check network connections (ss -tnp inside netns via nsenter), then use runtime tools (Falco, Tetragon) to alert on unexpected exec/file writes. Make containers read-only to turn drift into failures.

Why → Immutability makes anomalies loud.

Interview tip → Snapshot with docker export for forensics before killing it.

All Docker questions Roadmap: Docker & containers

More on Security and scanning