back to downloads

PostgreSQL 12

PostgreSQL 12

5.0.4-0
linux
amd64
View PostgreSQL 12 documentation

Step 1

Set up key environmental variables for working with your container. This creates a user named hippo with a password of datalake that has access to a database named hippo:

cat << EOF > postgres-env.list
PG_MODE=primary
PG_PRIMARY_USER=postgres
PG_PRIMARY_PASSWORD=datalake
PG_DATABASE=hippo
PG_USER=hippo
PG_PASSWORD=datalake
PG_ROOT_PASSWORD=datalake
PG_PRIMARY_PORT=5432
EOF

Step 2

Run the container:

docker run --publish 5432:5432 \
  --volume=postgres:/pgdata \
  --env-file=postgres-env.list \
  --name="postgres" \
  --hostname="postgres" \
  --detach \
registry.developers.crunchydata.com/crunchydata/crunchy-postgres:centos8-12.8-4.7.3

Step 3

Connect to your database and start exploring!

PGPASSWORD=datalake psql -h localhost -p 5432 -U hippo hippo
TAGS:

5.0.4-0

docker pull registry.developers.crunchydata.com/crunchydata/crunchy-postgres:centos8-12.9-0
COMPRESSED SIZE: 1046.12 MB

5.0.3-0

docker pull registry.developers.crunchydata.com/crunchydata/crunchy-postgres:centos8-12.8-1
COMPRESSED SIZE: 894.49 MB

4.7.3

docker pull registry.developers.crunchydata.com/crunchydata/crunchy-postgres:centos8-12.8-4.7.3
COMPRESSED SIZE: 866.68 MB

4.7.2

docker pull registry.developers.crunchydata.com/crunchydata/crunchy-postgres:centos8-12.8-4.7.2
COMPRESSED SIZE: 1023.53 MB

4.7.1

docker pull registry.developers.crunchydata.com/crunchydata/crunchy-postgres:centos8-12.7-4.7.1
COMPRESSED SIZE: 1021.44 MB

4.7.0

docker pull registry.developers.crunchydata.com/crunchydata/crunchy-postgres:centos8-12.7-4.7.0
COMPRESSED SIZE: 809.76 MB

4.6.4

docker pull registry.developers.crunchydata.com/crunchydata/crunchy-postgres:centos8-12.8-4.6.4
COMPRESSED SIZE: 976.62 MB

4.6.3

docker pull registry.developers.crunchydata.com/crunchydata/crunchy-postgres:centos8-12.7-4.6.3
COMPRESSED SIZE: 762.85 MB

4.6.2

docker pull registry.developers.crunchydata.com/crunchydata/crunchy-postgres:centos8-12.6-4.6.2
COMPRESSED SIZE: 737.41 MB

4.6.1

docker pull registry.developers.crunchydata.com/crunchydata/crunchy-postgres:centos8-12.6-4.6.1
COMPRESSED SIZE: 730.39 MB

4.6.0

docker pull registry.developers.crunchydata.com/crunchydata/crunchy-postgres:centos8-12.5-4.6.0
COMPRESSED SIZE: 730.20 MB

4.5.4

docker pull registry.developers.crunchydata.com/crunchydata/crunchy-postgres:centos8-12.8-4.5.4
COMPRESSED SIZE: 943.62 MB