Container: A lightweight package that contains an application and everything it needs to run, such as libraries and settings, so it runs the same way on any machine.
Example
Your API works on your laptop but fails on the server because of a different Java version. The team packages it as a container with the right Java version included, and it runs the same everywhere.
Containers vs Virtual Machines
| Container | Virtual machine | |
|---|---|---|
| Includes | App and its dependencies | A full operating system plus the app |
| Size | Megabytes | Gigabytes |
| Starts in | Seconds | Minutes |
| Isolation | Shares the host's kernel | Fully separate OS |
Container Words You Will Hear
- Image: the template, built from a Dockerfile.
- Container: a running instance of an image.
- Registry: where images are stored, such as Docker Hub or Azure Container Registry.
- Orchestration: managing many containers, usually with Kubernetes.
Why Teams Use Containers
They end the "it works on my machine" problem, make deployments predictable, and let you run a database or other service locally with one command. Docker is the most common tool, and basic container knowledge is expected for DevOps and helpful for every developer.
Related terms
- Docker: the most popular container tool.
- Kubernetes: runs and manages many containers.
- Virtual Machine (VM): the heavier alternative to containers.
- DevOps: containers are central to DevOps.
Previous term: Constructive Feedback | Next term: Continuous Deployment (CD)
Related guides
- DevOps Interview Questions Test
- Which Technology Should I Learn for an IT Internship?
- How to Choose the Right IT Career Path
Frequently asked questions
What is a container in software?
A container is a lightweight package of an application with everything it needs, so it runs the same way anywhere.
What is the difference between a container and a virtual machine?
A container shares the host's operating system kernel and is lightweight. A VM includes a full operating system and is heavier.
What is the difference between an image and a container?
An image is the template. A container is a running instance of that image.
Do developers need to know containers?
Basic knowledge helps a lot, since many teams run apps and local services in containers.
Explore more internship terms
The IT Internship Glossary explains 199 terms you will hear before and during your internship, with simple definitions and real examples.
Browse all 199 terms