PostgreSQL Docker Image with the latest PostgreSQL 9.3 from apt.postgresql.org
- Run this image, e.g.
docker run -d -name postgresql zumbrunnen/postgresql
- Connect to it via link or with
psql
:
psql -h <containerip> -U docker
docker run -d -link postgresql:db <otherimage>
Use docker
as username and password.
docker build -t image-name . docker run -d -name db-instance -v /data/on/dockerhost:/var/lib/postgresql -e DB_PASSWORD=supersecret image-name