HUB
Sign inSign up
ubuntu-postgresql logo

partlab/ubuntu-postgresql

By partlab

•Updated over 10 years ago

Docker image to run an out of the box PostgreSQL.

Image
0

1.7K

partlab/ubuntu-postgresql repository overview

⁠partlab/ubuntu-postgresql

Docker image to run an out of the box PostgreSQL.

⁠Usage
⁠Build
$ docker build -t partlab/ubuntu-postgresql .
⁠Download automated build
$ docker pull partlab/ubuntu-postgresql
⁠Running the PostgreSQL server
$ docker run -d -p 5432:5432 -e POSTGRES_PASSWORD=<password> --name postgresql partlab/ubuntu-postgresql
⁠Running the PostgreSQL server with persistent directory
$ docker run -d -p 5432:5432 --name postgresql -v <data-dir>/db:/var/lib/postgresql partlab/ubuntu-postgresql
⁠Environment variables
  • POSTGRES_PASSWORD: Password for the postgres user (defaults a password is created - get the password via docker logs )
⁠Tips
⁠VirtualBox (boot2docker-vm)
$ boot2docker halt
$ VBoxManage modifyvm boot2docker-vm --natpf1 "tcp-port5432,tcp,,5432,,5432"
$ boot2docker up
Tag summary
Recent tags
Content type
Image
Digest
sha256:e1fe5c633…
Size
124.7 MB
Last updated
over 10 years ago
docker pull partlab/ubuntu-postgresql:latest