All technological notes.
container
Features
namespaces (process, network, filesystem) and cgroups (resource control).Containers rely on containerization technology, which is a form of operating system-level virtualization.Docker, Podman, or containerd that manages containers.image, which is a static, immutable template containing the application and its dependencies.
| Feature | Containers | Virtual Machines |
|---|---|---|
| Isolation | Process-level isolation | Full hardware virtualization |
| Startup Time | Seconds or less | Minutes |
| Resource Usage | Lightweight (shares host OS kernel) | Heavy (requires full OS for each VM) |
| Portability | Easily portable across environments | Less portable due to dependence on hypervisor |
| Use Case | Microservices, cloud-native applications | Legacy applications, full OS environments |
Docker:
Podman:
Kubernetes:
CRI-O: