liveBook · Manning

Chapter 4: Pods

What you will learn in chapter 4 of Podman in Action: Secure, rootless containers for Kubernetes, microservices, and more

Introduces pods as groups of cooperating containers and previews managing containers and volumes within them.

After this chapter you will be able to

What it builds on

Section by section

Introduction

Introduces pods as groups of cooperating containers and previews managing containers and volumes within them.

Key terms: pod, namespaces, cgroups, resource constraints, SELinux labels

4.1 Running pods

This section explains how Podman runs a pod through an infra container, per-container monitors, optional init and sidecar containers, and pod-wide start and stop operations.

Key terms: infra container, pause container, namespaces, cgroups, conmon, OCI runtime, OCI spec file, rootfs, STDOUT, STDERR

4.2 Creating a pod

This section creates a pod for an application and a planned sidecar, explaining how pod-level settings are shared by containers that join it.

Key terms: podman pod create, mypod, myimage, sidecar container, -p 8080:8080, network namespace, port binding, --volume ./html:/var/www/html:z, :z, SELinux label

4.3 Adding a container to a pod

This section adds an application container and a time-updating sidecar to a Podman pod, showing how they share the pod’s volume and namespaces.

Key terms: podman create, --pod mypod, infra container, volume mount, namespaces, sidecar container, html/time.sh, chmod, index.html, --workdir

4.4 Starting a pod

This section starts a pod, checks its containers, and verifies that a sidecar updates content served by the application.

Key terms: podman pod start, podman ps, infra container, myapp container, update container, ubi8 sidecar container, time.sh, index.html, /var/www/html, myapp

4.5 Stopping a pod

This section shows how to stop a running pod, verify that its containers stopped, and choose options that change which pods are stopped or how long Podman waits.

Key terms: podman pod stop, podman ps, --all, --latest, -l, --timeout, -t

4.6 Listing pods

This section shows how to list pods and adjust the information displayed.

Key terms: podman pod list, --ctr*, --format

4.7 Removing pods

This section shows how to remove a Podman pod, verify that its containers are gone, and choose options for removing multiple or running pods.

Key terms: podman pod rm, --all, --format, pod ID, --force

4.8 Summary

This summary recaps how pods group containers into applications and let those containers share namespaces, resource constraints, and pod-level options.

Where this is used later

Concepts explained in this chapter

← Chapter 3: Volumes Chapter 5: Customization and configuration files →

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.