PostgreSQL 9.3 with locale to en_US.UTF-8
10K+
[
]
(http://www.postgresql.org/)
[]
(https://circleci.com/gh/pascalgrimaud/docker-postgresql)
This image is used as a PostgreSQL Server 9.3.
The base docker image :
The GitHub project :
You can clone this project and build with docker command :
git clone https://github.com/pascalgrimaud/docker-postgresql.git \
&& cd docker-postgresql \
&& docker build -t pascalgrimaud/postgresql:9.3 .
You can build directly from the GitHub project :
docker build -t pascalgrimaud/postgresql:9.3 \
github.com/pascalgrimaud/docker-postgresql.git
To display usage :
docker run pascalgrimaud/postgresql:9.3 /help
Quick start with binding to port 5432 and random password :
docker run -d -p 5432:5432 pascalgrimaud/postgresql:9.3
To get the password :
docker logs <container id>
Start and set a specific password for postgres user :
docker run -d -p 5432:5432 -e POSTGRES_PASS="pass" pascalgrimaud/postgresql:9.3
Start and mount a volume for data persistence at ~/volumes/postgresql93/data :
docker run -d -p 5432:5432 -v ~/volumes/postgresql93/data:/var/lib/postgresql \
pascalgrimaud/postgresql:9.3
Start and mount a volume for data persistence at ~/volumes/postgresql93/data and logs at ~/volumes/postgresql93/logs :
docker run -d -p 5432:5432 -v ~/volumes/postgresql93/data:/var/lib/postgresql \
-v ~/volumes/postgresql93/logs:/var/log/postgresql pascalgrimaud/postgresql:9.3
If you forget the postgres user password, delete the file .password :
sudo rm ~/volumes/postgresql93/data/9.3/.password
You can use the docker-compose.yml (edit this file first) :
docker-compose up
Content type
Image
Digest
sha256:7a0a58cbd…
Size
99.7 MB
Last updated
about 11 years ago
docker pull pascalgrimaud/postgresql