Podman Pods
May 20, 2023
TIL the POD in Podman is the same idea as Pods in Kubernetes. Pods are
collections of containers that share resources (i.e. volumes, networks, etc.).
Create a pod with the podman pod create --name [pod-name] command. You will
need to expose ports and setup other resources with the pod create command.
podman pod create --name my-new-pod --infra --publish 8080:80 --network bridge
Add a container to a pod with the --pod [pod-name] flag in your run command:
podman run -d --pod my-new-pod --name my-nginx docker.io/library/nginx
Load 127.0.0.1:8080 in a browser and see the default nginx page from your pod!