This is an Ubuntu-based PostgreSQL Docker Image using stock packages from Ubuntu.
Run docker pull rgielen/postgresql-ubuntu
to pull the latest image before running.
Use docker run -d -v my-pg-volume:/var/lib/postgresql --name my-pg rgielen/postgresql-ubuntu
to create and run a container named my-pg with a volume named my-pg-volume
, where the database cluster will be stored persistently.
/var/lib/postgresql
will contain the database cluster
PG_PASSWORD
- set a password for the postgres user. If not gibven, the password is generated and logged to console on first startLANG
- defaults tode_DE.UTF-8
, as it fits my specific needs along with generating locale definitions on build. Set this toen_US.UTF-8
to support english locale for cluster creation and feedback