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

TermMeaning
DockerfileA text file with instructions to build an image
ImageA packaged template of the app and its dependencies
ContainerA running instance of an image
Docker Hub / registryWhere images are stored and shared
Docker ComposeRuns several containers together, such as app + database

Commands Worth Knowing

CommandWhat it does
docker build -t myapp .Build an image from a Dockerfile
docker run -p 8080:8080 myappStart a container and map a port
docker psList running containers
docker logs <id>See a container's output
docker compose upStart 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

Previous term: DevOps  |  Next term: Documentation

Related guides

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
Dhaivat Ajwaliya

About the author

Dhaivat Ajwaliya

Dhaivat has 16+ years of experience in the IT industry, working on AI and cloud technologies, project delivery, and engineering leadership. He has interviewed and mentored many interns, wrote The Lost Intern, and runs the non-commercial Career Impact Initiative, mentoring students for free.