Painted-Fox / docker-postgresql

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

Logs running in a loop? #27

Closed richardgill closed 10 years ago

richardgill commented 10 years ago

I'm having an issue with this image. When I run it it just looks like it's looping round and round, I can't connect to it the postgres instance.

I tried first straight from image in index and then by building manually. Initially I was on docker 0.8, but i've upgraded to 1.0.1 just in case. Same issue.

To reproduce:

mkdir -p /tmp/postgresql
sudo docker run -d --name="postgresql" \
             -p 127.0.0.1:5432:5432 \
             -v /tmp/postgresql:/data \
             -e USER="super" \
             -e DB="database_name" \
             -e PASS="$(pwgen -s -1 16)" \
             paintedfox/postgresql

sudo docker logs <containerId>

The logs show this repeating in a loop for ever.

*** Running /etc/rc.local...
*** Booting runit daemon...
*** Runit started as PID 9
POSTGRES_USER=super
POSTGRES_PASS=E6YPMC9bumy1gJAh
POSTGRES_DATA_DIR=/data
POSTGRES_DB=database_name
Initializing PostgreSQL at /data
Starting PostgreSQL...
POSTGRES_USER=super
POSTGRES_PASS=E6YPMC9bumy1gJAh
POSTGRES_DATA_DIR=/data
POSTGRES_DB=database_name
Starting PostgreSQL...
POSTGRES_USER=super
POSTGRES_PASS=E6YPMC9bumy1gJAh
POSTGRES_DATA_DIR=/data
POSTGRES_DB=database_name

Quite possible i've made a silly error? How can I get more useful logs? What's going on!

I really like this postgres image, by far the best out there :smiley: . It would be amazing if I could use it in my project.

richardgill commented 10 years ago

Duplicate of issue https://github.com/Painted-Fox/docker-postgresql/issues/25 .