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/Container

A running process, isolated by namespaces and constrained by cgroups — not a mini virtual machine.

10 QuestionsIntermediateHigh Priority ~10 min read

An image and a container are related but distinct: an image is a read-only template, and a container is a running (or stopped) instance of that template, with its own thin writable layer stacked on top for any changes made while it runs. Multiple containers can be started from the exact same image, each getting its own independent writable layer and its own isolated view of processes, network, and filesystem.

Containers share the host's kernel rather than running their own — there's no guest OS to boot, which is exactly why containers start in milliseconds compared to a VM. A container's lifecycle is tied directly to its main process (PID 1 inside the container): when that process exits, the container exits too, regardless of any background processes it may have spawned, which is a common surprise for anyone expecting container lifecycle to work like a full OS session.

What you'll walk away knowing

The distinction between an image (a template) and a container (a running instance of it)
Why containers share the host's kernel, and what that means for isolation compared to a VM
What happens to a container when its main process (PID 1) exits
The container lifecycle states and what triggers each transition
1What is a Docker container?Intermediate2How is a container different from a virtual machine?Intermediate3What are cgroups and how does Docker use them?Intermediate4How do you list running containers?Beginner5How do you stop a running container?Beginner6How do you run a container from an image?Beginner
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.