# Podman & Buildah
slide: https://hackmd.io/@HannahLo/podman-and-buildah
Docker 功能很完整了,為何要重造輪子?
---
## Purpose
- Rootless for security
- Lightweight, run without deamon
---
# [Podman](https://podman.io/)

- Podman is a Pod Manager tool
- Redhat buildin docker machine
Note:
- Podman is a **container engine** for developing, managing, and running **Open Container Initiative (OCI)** containers and container images on your Linux System.
---
It's easy migrate docker to podman
```shell=
dnf install -y podman
alias docker=podman
```
Use same command as Docker
```shell=
podman ps
podman images
podman run -d busybox sleep 3600
podman stop --latest
```
---
## Podman vs Docker
- **Rootless**
- **Decentralized**
- Can running **Pods**
- Export yml for k8s
Note:
Decentralized
[What is Podman](https://pandorafms.com/blog/what-is-podman/#:~:text=It%20is%20a%20reference%20to%20the%20Docker%20service%20(daemon).&text=This%20is%20why%20RedHat%20has,service%20(daemon)%20to%20work.) They have decentralized all the components necessary for container management and have individualized them into smaller components that will be used only when necessary. This decentralization offers a large number of advantages that we will see later
Podman is capable of running containers in exactly the same way Docker does, but it is also capable of running Pods.
[^Pod]:If it sounds like black magic, for now keep in mind that a Pod is a unit where there may be one or more containers. We will delve into these concepts.
[^Podman Image]:Imagine that each of the seals in the Podman logo is a container, so what you have is a pod.
---
# [Buildah](https://github.com/containers/buildah)

- Rootless
- Multiple ways to create image
- Dockerfile
- Buildah with bash
---
## Play with Buildah
[Katacoda](https://www.katacoda.com/courses/containers-without-docker/building-container-images-with-buildah)
---
## Resources
- https://developers.redhat.com/blog/2019/02/21/podman-and-buildah-for-docker-users/
{"metaMigratedAt":"2023-06-15T12:01:30.387Z","metaMigratedFrom":"YAML","title":"Podman & Buildash","breaks":false,"description":"View the slide with \"Slide Mode\".","contributors":"[{\"id\":\"ab96d3dd-b813-4505-b966-c5c9acd14fb0\",\"add\":4862,\"del\":2559}]"}