Dockerfile with postgresql-9.3 server
This repository provides a postgresql-9.3 server. It is important to suply a volume for postgresql data. If the data dir is empty, when starting the container, it will create the database cluster, a user and a database. Creating a database might take a while (~ 5 seconds).
When running check docker logs to see if the runit process (which starts postgresql database) has already started.
docker build -t labianchin/postgresql .
docker run -it -v /tmp/volumes/data:/data -v /tmp/volumes/log:/var/log --name thesql -p 5432:5432 -d labianchin/postgresql
PG_PASSWORD=docker psql -h localhost -U docker docker
This repository was inspired in the following repositories:
Content type
Image
Digest
sha256:df3d3c19e…
Size
141.1 MB
Last updated
almost 11 years ago
docker pull labianchin/postgresql