Sign inSign up

nbrun/postgresql

By nbrun

•Updated over 9 years ago

Old Postgresql database to work on old projects.

Image
0

1.1K

nbrun/postgresql repository overview

⁠Supported tags

  • 8.4 (8.4.21-1.pgdg70+1), latest

⁠How to use it

⁠Create your container

docker run --name postgres8 -d nbrun/postgresql

⁠Start deamon

docker start postgres8

⁠Default password

Default password for user postgres is empty.

⁠Common actions

⁠Add new role

docker run -it --rm --link postgres8:postgres8 nbrun/postgresql createuser -d -E -P newuser -h postgres8 -U postgres

Replace newuser by your new user.

⁠Create Database

docker run -it --rm --link postgres8:postgres8 nbrun/postgresql createdb database -h postgres8 -U user

Replace database by your database name and replace user by your postgresql 8 user name.

⁠Load a script

docker run -i --rm --link postgres8:postgres8 nbrun/postgresql psql -h postgres8 -U user < script

Replace script by your SQL file name and replace user by your postgresql 8 user name.

⁠Info

This image was created using these configuration files : https://github.com/docker-library/postgres/tree/ea490430aabd553f34656e8f0e846d2ed3c42930/8.4⁠

Tag summary

Content type

Image

Digest

Size

95.4 MB

Last updated

over 9 years ago

docker pull nbrun/postgresql