nextRound
TechnologiesCoding ProblemsBookmarksLearning Paths
nextRound
TechnologiesCoding ProblemsBookmarksLearning Paths
nextRound

AI-powered interview preparation platform. Practice with curated questions, mock interviews, and personalized learning paths to crack your dream tech interview.

Quick Links

  • Technologies
  • Saved Questions
  • Pricing

Company

  • About Us
  • Contact Us

Legal

  • Privacy Policy
  • Terms of Use

© 2026 nextRound. All rights reserved.

TOPIC OVERVIEW

Docker/Security

Where container isolation genuinely helps, and where it doesn't protect you at all.

10 QuestionsAdvancedHigh Priority ~12 min read

Because containers share the host's kernel, a kernel-level vulnerability can potentially be exploited to escape a container's isolation entirely — a fundamentally weaker guarantee than a VM's hardware-enforced boundary. This is exactly why running a container as root (the default unless explicitly changed) is a real risk: if a root process inside a container manages to escape, it's root on the host too. Setting a non-root USER in the Dockerfile meaningfully reduces that blast radius.

Minimizing the base image reduces the attack surface simply by including fewer packages that could carry a vulnerability. Scanning images for known CVEs before deployment catches issues early. Secrets should never be baked into an image layer — even if a later layer deletes the secret file, it remains fully recoverable from the earlier layer's history, which is why build secrets or a proper secrets manager are the actual fix. Read-only root filesystems and dropping unnecessary Linux capabilities are further hardening steps worth knowing concretely, not just as buzzwords.

What you'll walk away knowing

Why containers sharing the host kernel is a fundamentally different isolation model than a VM
Why running a container process as root is risky, and what USER in a Dockerfile changes
Why baking a secret into an image layer is dangerous even if a later layer deletes it
What minimizing the base image, scanning for CVEs, and dropping capabilities each protect against

No questions match "".

All Topics
1
Basics
Engine
Using Docker
2
Images
Hub
Dockerfile
3
Container
Volumes and Storage
Compose
4
CI-CD
Security
Performance
Sharethis topic

Share via WhatsApp, X, Facebook, LinkedIn or copy link. Open Graph preview enabled.