Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't login when running with persistance #3

Open
Grovespaz opened this issue Mar 20, 2014 · 3 comments
Open

Can't login when running with persistance #3

Grovespaz opened this issue Mar 20, 2014 · 3 comments

Comments

@Grovespaz
Copy link

I'm not sure if this is just me not understanding the tooling well enough yet, or something you could possibly fix in the dockerfile.

When I run the container with the sample command you provided:
docker run -d -v $HOME/postgres_data:/var/lib/postgresql postgis:2.1

I find that I can't login with the credentials, whilst running the container without persistance allows me to login normally.

@evdoks
Copy link

evdoks commented Apr 26, 2014

Have the same problem - cannot login to the database with docker/docker if the container mounts the database directory as a volume to persist the data.

@evdoks
Copy link

evdoks commented Apr 26, 2014

The reason for that are missing definitions for $USERNAME and $PASS variables in start.sh script. Once they are set to USERNAME=docker and PASS=docker you can log into the database as usual.

h4ck3rm1k3 pushed a commit to h4ck3rm1k3/docker-postgis that referenced this issue Nov 2, 2014
@happyman
Copy link

first time run: sudo docker run -e USERNAME=docker -e PASS=docker -d -v /home/postgres_data/:/var/lib/postgresql -t -p 5432:5432 helmi03/docker-postgis, let start.sh get the variables. the 2nd time does matter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants