Sign inSign up

lonelyplanet/postgres

By lonelyplanet

Updated almost 11 years ago

Postgres 9.4 (with postgis)

Image
0

876

lonelyplanet/postgres repository overview

Most up to date readme can be found here

Building the image

docker build -t lonelyplanet/postgres:9.4 .

Running a container from the image

docker run -p 55432:5432 lonelyplanet/postgres:9.4

Starts a container that binds 5432 on in the container to 55432 on the host system.

Connecting to running postgres container

  • username: postgres
  • password:
psql -p 55432 -U postgres

If you are using the docker toolbox to run docker (ex. boot2docker):

psql -h $(docker-machine ip default) -p 55432 -U postgres

Publishing an image

We have a lonelyplanet organization on Docker Hub. To push the image, run the following:

# tag the image with the date in YYYYMMDD format
docker tag lonelyplanet/postgres:9.4 lonelyplanet/postgres:9.4-YYYYMMDD

# push to Docker Hub
docker push lonelyplanet/postgres:9.4

Tag summary

Content type

Image

Digest

sha256:c939cb64f

Size

148.7 MB

Last updated

almost 11 years ago

docker pull lonelyplanet/postgres:9.4