What is Docker?
Docker allows developers to package an application, along with all of its dependencies, into a single, standardized unit called a container.
Unlike virtual machines (VMs), containers only isolate the application files and libraries. Because all containers share the host operating system's kernel, they are incredibly lightweight, start up instantly, and offer strong resource efficiency.
There are a handful of Docker-specific terms to be aware of:
- Dockerfile: A text file containing a list of step-by-step instructions for building your environment.
- Image: A read-only snapshot of the application's code, libraries, and environment settings.
- Container: A live, running instance of an image.
Why Docker?
Absolute Consistency: An image runs exactly the same across all environments—from a developer's laptop to a cloud server.
Isolation: Applications are completely isolated, allowing different containers to run their own conflicting set of dependencies without interfering with one another.
Easy Cleanup: Removing a container completely deletes the application environment without leaving behind any "system junk," while persistent data can be safely mapped to the host.
Vast Ecosystem: A massive community of developers provides existing, stable, and official images to utilize. You do not need to build your entire stack from scratch.