Running containers in pods
As we mentioned in the Docker versus Podman main differences section of Chapter 2, Comparing Podman and Docker , Podman offers capabilities to easily start adopting some basic concepts of the de facto container orchestrator named Kubernetes (also sometimes referred to as k8s
).
The pod concept was introduced with Kubernetes and represents the smallest execution unit in a Kubernetes cluster. With Podman, users can create empty pods and then run containers inside them easily.
Grouping two or more containers inside a single pod can have many benefits, such as the following:
- Sharing the same network namespace, IP address included
- Sharing the same storage volumes for storing persistent data
- Sharing the same configurations
In addition, placing two or more containers in the same pod will actually enable them to share the same inter-process communication (IPC) Linux namespace. This could be really useful for applications that need to communicate...