1/6
What is Docker?
1
What is Docker?
- Docker is an open-source containerization platform.
- Packages apps into lightweight, portable containers.
- Containers share the host OS kernel -- no full VM needed.
- Ensures "works on my machine" actually works everywhere.
- Built on Linux namespaces, cgroups and UnionFS.
Docker Flow
Dockerfile
↓ docker build
Image
↓ docker run
Container
↓ docker push
Registry (Hub)
2
Containers vs Virtual Machines
Containers
Virtual Machines
Share host OS kernel
Each has full guest OS
Lightweight (MBs)
Heavy (GBs)
Start in seconds
Start in minutes
Less isolation (process level)
Full isolation (hardware level)
⭐ Remember
✓ Docker containers are NOT VMs -- they share the host kernel
✓ Image = blueprint, Container = running instance of an image
💡 Interview Tip
Q: What is Docker?
A: Docker is an open-source platform that automates the deployment of applications inside lightweight, portable containers that share the host OS kernel.
A: Docker is an open-source platform that automates the deployment of applications inside lightweight, portable containers that share the host OS kernel.