Container

Definition

A package that contains an application and everything it needs to run, making it easy to move between different computers.

Use Cases

Provider Equivalents

Frequently Asked Questions

What's the difference between a container and a virtual machine (VM)?
A VM includes a full guest operating system on top of a hypervisor, which makes it heavier but strongly isolated. A container packages the app and its dependencies but shares the host OS kernel, so it starts faster and uses fewer resources. In practice: use VMs when you need full OS isolation or different OS kernels; use containers for lightweight, portable app deployment.
When should I use containers?
Use containers when you want consistent behavior across environments (laptop, test, production), faster deployments, and easy scaling—especially for microservices, APIs, background workers, and CI/CD pipelines. They’re also useful when multiple apps need different library versions on the same host. If you have a single legacy app that tightly depends on a specific OS setup, starting with a VM may be simpler.
How much do containers cost?
Containers themselves are a packaging method and don’t have a direct cost. You pay for the compute, storage, and networking used to run them. Costs depend on whether you run containers on VMs (pay for VM instances), on managed/serverless container platforms (pay per vCPU/memory time and requests), and on supporting services like load balancers, container registries, and logging/monitoring.

Category: containers

Difficulty: intermediate

Related Terms

See Also