Docker: A popular tool for packaging an application with everything it needs into a container, so it runs the same way on a laptop, a test server, or the cloud.
Example
On day one, instead of installing PostgreSQL by hand, you run one docker run command and have the right database version running locally in under a minute.
Docker Basics
| Term | Meaning |
|---|---|
| Dockerfile | A text file with instructions to build an image |
| Image | A packaged template of the app and its dependencies |
| Container | A running instance of an image |
| Docker Hub / registry | Where images are stored and shared |
| Docker Compose | Runs several containers together, such as app + database |
Commands Worth Knowing
| Command | What it does |
|---|---|
| docker build -t myapp . | Build an image from a Dockerfile |
| docker run -p 8080:8080 myapp | Start a container and map a port |
| docker ps | List running containers |
| docker logs <id> | See a container's output |
| docker compose up | Start all services in a compose file |
How Teams Use Docker
- Running databases and other services locally for development.
- Packaging apps in CI/CD pipelines.
- Deploying to Kubernetes or cloud container services.
Adding a Dockerfile to your own project, so anyone can run it with one command, is a simple way to show DevOps awareness.
Related terms
- Container: what Docker creates and runs.
- Kubernetes: manages Docker containers at scale.
- DevOps: Docker is a core DevOps tool.
- Development Environment: Docker simplifies local setup.
Previous term: DevOps | Next term: Documentation
Related guides
- DevOps Interview Questions Test
- Build a GitHub Portfolio That Gets You Internship Interviews
- Which Technology Should I Learn for an IT Internship?
Frequently asked questions
What is Docker used for?
Docker packages applications and their dependencies into containers, so they run the same way everywhere.
What is the difference between Docker and a virtual machine?
Docker containers share the host operating system and are lightweight. Virtual machines include a full operating system.
What is a Dockerfile?
A text file with step-by-step instructions to build a Docker image.
Should developers learn Docker?
Yes. Basic Docker skills help with local setup and are expected in many teams.
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