Container
ELI5 — The Vibe Check
A container is a running instance of a Docker image — it's the lunchbox you made and actually opened to eat from. Your image is the recipe; a container is a prepared meal. You can run many containers from the same image at the same time, each one isolated from the others.
Real Talk
A container is a runnable instance of a container image. Containers are isolated processes that share the host OS kernel but have their own filesystem, network, and process namespace. They are ephemeral by default — stopping a container discards any data not stored in volumes.
Show Me The Code
# List running containers
docker ps
# Execute a command in a running container
docker exec -it my-container bash
# Stop and remove a container
docker stop my-container && docker rm my-container
When You'll Hear This
"How many containers are running in prod right now?" / "The container crashed — check the logs with docker logs."
Related Terms
Docker
Docker is like a lunchbox for your app.
Dockerfile
A Dockerfile is the recipe for building a Docker image.
Image
A Docker image is the blueprint or template for a container. It's like a frozen snapshot of your app and everything it needs to run.
Kubernetes
Kubernetes is a robot manager for your containers.
Pod
A Pod is the smallest thing Kubernetes manages — it's like a tiny apartment that one or more containers share.