Run PostgreSQL in Podman Container



Run PostgreSQL in Podman Container

Run PostgreSQL in Podman Container

in This Tutorial you will Learn ” How To Run PostgreSQL in Podman Container ”

PostgreSQL is an advanced, enterprise-class, and open-source relational database system.
Podman is an OCI-compliant container runtime that works without a daemon.

cat /etc/system-release ; sestatus ; dnf groupinstall “Development Tools” -y
dnf install podman -y
podman pod create –name postgre-sql -p 9876:80
podman pod ps

podman run –pod postgre-sql
-e ‘[email protected]
-e ‘PGADMIN_DEFAULT_PASSWORD=Passw0rd’
–name pgadmin
-d docker.io/dpage/pgadmin4:latest

podman pull docker.io/library/postgres:14
podman images
podman run –name db –pod=postgre-sql -d
-e POSTGRES_USER=admin
-e POSTGRES_PASSWORD=Passw0rd
docker.io/library/postgres:14

podman pod ps
podman pod stats postgre-sql
http://127.0.0.1:9876

Comments are closed.