Skill 7.5.3

Containers

Key Concepts

Containers (for example with Docker or Podman, orchestrated by Kubernetes) are lighter than virtual machines because they share the host operating system kernel. This makes them fast and efficient but gives weaker isolation: a kernel vulnerability or a privileged container can affect the host and other containers.

Container security includes using minimal, trusted base images, scanning images for vulnerabilities, signing images, running containers as non-root without unnecessary privileges, limiting resources, keeping secrets out of images and controlling network traffic between containers.