Skip to main content

CentOS Stream 10: Create Pods

Create and manage Podman pods, add containers to pods, and run multi-container pods.

May 25, 2026 4 min read
centoscentos-stream-10podmanpodscontainers

Create and manage Podman pods, similar to Kubernetes pods.

Create a Pod and Add a Container

Create an empty pod with port mapping:

podman pod create -p 8081:80 -n test-pod

List pods:

podman pod ls

Inspect the pod:

podman pod inspect test-pod

Run a container and add it to the pod:

podman run -dt --pod test-pod srv.world/centos-nginx
podman ps

Test access:

curl localhost:8081

Stop and remove the pod:

podman pod stop test-pod
podman pod rm test-pod --force

Create a Pod with a Container in One Command

Create a pod and add a container simultaneously:

podman run -dt --pod new:test-pod2 -p 80:80 -p 3306:3306 srv.world/centos-nginx

Add another container to the same pod:

podman run -dt --pod test-pod2 -e MYSQL_ROOT_PASSWORD=Password mariadb

Verify both containers share the same network namespace:

podman ps

Containers in the same pod share the same network, IPC, and UTS namespaces, and can communicate via localhost.