sameersbn / docker-postgresql

Dockerfile to build a PostgreSQL container image which can be linked to other containers.
MIT License
1.05k stars 467 forks source link

Container exits with DB_EXTENSION=uuid-ossp #87

Closed drew-r closed 7 years ago

drew-r commented 7 years ago

Container exits with code 1 if I provide the DB_EXTENSION env var. Debug log shows + psql -U postgres -d integration-test -c 'CREATE EXTENSION IF NOT EXISTS uuid-ossp;' as last line of output

No PG_PASSWORD is specified and PG_TRUST_LOCALNET is true.

drew-r commented 7 years ago

This was due to the uuid-ossp needing to be quoted. I was able to fix by quoting the env var value.