Postgres 9.6 docker image with support for initialization SQL command
Sames as https://hub.docker.com/_/postgres but adds an additional environment variable POSTGRES_CMDS:
docker run --name some-postgres -e POSTGRES_PASSWORD=mysecretpassword \
-e POSTGRES_CMDS='CREATE DATABASE \"mydb\"; \n CREATE DATABASE \"mydb2\";' \
-d postgres
Content type
Image
Digest
Size
14.8 MB
Last updated
about 7 years ago
docker pull fernandorejonbarrera/postgres-init