Painted-Fox / docker-postgresql

A dockerfile that produces a docker image that runs postgresql.
MIT License
72 stars 57 forks source link

USER input variable ignored #42

Open katerberg opened 9 years ago

katerberg commented 9 years ago

When I try to run the following: docker run --name="foo" -e PASS="bar" foo

the default PASS is overridden with "bar" instead.

When I run the following: docker run --name="foo" -e USER="bar" foo

the USER variable is still "super".

This is using ff19c5c53b9a.

Please let me know what other info would be helpful in reproducing!

ribeiroct commented 9 years ago

Second this. Also happening to me.

fonk commented 9 years ago

+1

samueltardieu commented 8 years ago

Confirmed:

% docker run --rm -ti -p 5432:5432 -e USER=cgeostatus -e DB=cgeostatus -e PASS=cgeostatus paintedfox/postgresql                                                                                                                                     *** Running /etc/rc.local...                                                   
*** Booting runit daemon...
*** Runit started as PID 11
POSTGRES_USER=super
POSTGRES_PASS=cgeostatus
POSTGRES_DATA_DIR=/data
POSTGRES_DB=cgeostatus
chymian commented 8 years ago

@Painted-Fox

it's the same as issue #31. https://hub.docker.com/r/paintedfox/postgresql/builds/ shows it was last updated 2 years ago… latest commit here was 14 sept. 2014, it seems to be not maintained any longer :(

what I like about this image in opposite to the official image https://hub.docker.com/_/postgres/ is the use of an external volume for the data.