Sign inSign up

dharmamike/pmx-pgsql

By dharmamike

•Updated almost 11 years ago

This container runs a PostgreSQL database built from source accessible with username "docker" and password "docker".

Image
1

100K+

dharmamike/pmx-pgsql repository overview

⁠Building and debugging

sudo docker build -t dharmamike/dc-pgsql

$ sudo docker run -d -p 5432:5432 -t dharmamike/dc-pgsql

⁠and when inside:

$ service postgresql start

⁠Running

$ CONTAINER=$(sudo docker run -d -p 5432 -t dharmamike/dc-pgsql)

$ CONTAINER_IP=$(sudo docker inspect $CONTAINER | grep IPAddress | awk '{ print $2 }' | tr -d ',"')

⁠using the postgres client in the docker host

$ psql -p5432 -h $CONTAINER_IP --username='docker' --password --list

Tag summary

Content type

Image

Digest

sha256:f73703b03…

Size

432.6 MB

Last updated

almost 11 years ago

docker pull dharmamike/pmx-pgsql