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.
Podman हे Docker सारखे container tool आहे, पण त्याला daemon लागत नाही आणि तो root शिवाय चालतो. या chapter मध्ये आपण Podman install करू, rootless containers चालवू, pods बनवू, podman-compose वापरू, Kubernetes YAML generate करू आणि Docker चे इतर पर्याय बघू. Docker commands येतात तर Podman शिकायला खूप सोपे आहे.
Podman Docker जैसा container tool है, लेकिन इसे daemon नहीं चाहिए और यह root के बिना चलता है. इस chapter में हम Podman install करेंगे, rootless containers चलाएंगे, pods बनाएंगे, podman-compose इस्तेमाल करेंगे, Kubernetes YAML generate करेंगे और Docker के अन्य विकल्प देखेंगे. Docker commands आते हों तो Podman सीखना बहुत आसान है.
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
- 68.1Podman install and architecture: daemonless containers on Linux, macOS and Windows
- 68.2Rootless mode: user namespaces, subuid ranges, networking, volumes and limits
- 68.3Podman pods: containers that share a network, exactly like Kubernetes pods
- 68.4podman compose and podman-compose: running Docker Compose files with Podman
- 68.5podman generate kube, podman kube play and Quadlet: from a laptop pod to Kubernetes and systemd
- 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.