Developer Dictionary
Container
Definition
A standard unit of software that packages up code and all its dependencies.
Deep Dive
A container is a standard unit of software that packages up code and all its dependencies, allowing applications to run quickly and reliably from one computing environment to another. Unlike virtual machines that virtualize an entire operating system, containers virtualize the operating system at the application layer, sharing the host OS kernel. This makes them significantly lighter, faster to start, and more resource-efficient, providing a consistent and isolated environment for applications to operate regardless of the underlying infrastructure.
Examples & Use Cases
- 1A Docker container running a Node.js web server with all its required packages
- 2Deploying a suite of microservices, each in its own container, managed by Kubernetes
- 3A CI/CD pipeline building a new version of an application into a container image for consistent deployment
Related Terms
DockerKubernetesVirtual MachineMicroservices