Secure by Design, Built for Speed, Hardened Container Images on a minimal base CleanStart OS.
100K+
Verified PGBOUNCER Container Image
A hardened, minimal PGBOUNCER container image built from source with verifiable software provenance and an SBOM, designed for secure production deployments.
For additional versions including FIPS support, explore CleanStart Images — secure, hardened container images
docker pull cleanstart/pgbouncer:latest
docker pull cleanstart/pgbouncer:latest-dev
Basic test:
docker run -it --name pgbouncer-test cleanstart/pgbouncer:latest-dev
cd sample-project
# Create network
docker network create pgbouncer-net
# Start PostgreSQL
docker run -d --name postgres-db --network pgbouncer-net \
-e POSTGRES_DB=testdb -e POSTGRES_USER=testuser -e POSTGRES_PASSWORD=testpass \
postgres:16-alpine
# Start PgBouncer
# Create valid pgbouncer.ini config file, to test furthur
docker run -d --name pgbouncer --network pgbouncer-net -p 6432:6432 \
-v $(pwd)/pgbouncer.ini:/etc/pgbouncer/pgbouncer-other.ini/pgbouncer.ini:ro \
-v $(pwd)/userlist.txt:/etc/pgbouncer/userlist.txt/userlist.txt:ro \
cleanstart/pgbouncer:latest /etc/pgbouncer/pgbouncer-other.ini/pgbouncer.ini
# Test connection
docker run --rm -it --network pgbouncer-net postgres:16-alpine \
psql -h pgbouncer -p 6432 -U testuser -d testdb
docker run -d \
--name pgbouncer \
-p 6432:6432 \
-v $(pwd)/pgbouncer.ini:/etc/pgbouncer/pgbouncer-other.ini/pgbouncer.ini:ro \
-v $(pwd)/userlist.txt:/etc/pgbouncer/userlist.txt/userlist.txt:ro \
cleanstart/pgbouncer:latest /etc/pgbouncer/pgbouncer-other.ini/pgbouncer.ini
Why Use CleanStart Images
Content type
Image
Digest
sha256:523074ef5…
Size
44.7 MB
Last updated
about 24 hours ago
docker pull cleanstart/pgbouncer