Ravindra BagaleCourses & study guides मराठी

DevOps

Chapter 68: Podman in Depth: Install, Rootless Containers, Pods, Compose, Kube YAML and Alternatives

Podman is a container tool like Docker, but it needs no daemon and can run without root. In this chapter we install Podman, run rootless containers, build pods, use podman-compose, generate Kubernetes YAML and look at other Docker alternatives. If you already know Docker commands, Podman is easy to learn.

What you will learn in this chapter

  • Install Podman on Ubuntu, Fedora, RHEL, macOS and Windows and explain its daemonless design
  • Run rootless containers and understand user namespaces, subuid ranges and rootless networking
  • Group containers into pods that share a network like Kubernetes pods
  • Run multi-container apps with podman compose and podman-compose
  • Generate Kubernetes YAML from pods, replay it with podman kube play and run services with Quadlet
  • Compare Podman with Docker, containerd and nerdctl, Buildah, Skopeo, Rancher Desktop and Colima

Concepts in this chapter

  1. 68.1Podman install and architecture: daemonless containers on Linux, macOS and Windows
  2. 68.2Rootless mode: user namespaces, subuid ranges, networking, volumes and limits
  3. 68.3Podman pods: containers that share a network, exactly like Kubernetes pods
  4. 68.4podman compose and podman-compose: running Docker Compose files with Podman
  5. 68.5podman generate kube, podman kube play and Quadlet: from a laptop pod to Kubernetes and systemd
  6. 68.6Alternatives and companions: Buildah, Skopeo, containerd with nerdctl, Rancher Desktop, Colima and Podman Desktop

The chapter recap is at the end of the last concept page.