zooniverse / docker-postgresql

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

fails to start #2

Open camallen opened 9 years ago

camallen commented 9 years ago

Doesn't work in vagrant with fresh build from our docker zooniverse/postgres repo https://registry.hub.docker.com/u/zooniverse/postgresql/dockerfile/

docker logs pg shows.

POSTGRES_USER=super
POSTGRES_PASS=panoptes
POSTGRES_DATA_DIR=/data
POSTGRES_DB=Panoptes_development
Starting PostgreSQL...
Couldn't initialize inotify.  Are you running Linux 2.6.13 or later, and was the
CONFIG_INOTIFY option enabled when your kernel was compiled?  If so, 
something mysterious has gone wrong.  Please e-mail radu.voicilas@gmail.com
 and mention that you saw this message.
2014-10-06 16:02:36 UTC FATAL:  could not access private key file "/etc/ssl/private/ssl-cert-snakeoil.key": Permission denied

Seems there is an underlying problem with the docker images..

adammcmaster commented 9 years ago

@camallen It seems to work here. What's the exact docker run command you're using? And what version of docker?

docker --version
camallen commented 9 years ago

are you running it in the vagrant box?

camallen commented 9 years ago

In the vagrant box it's: vagrant@ubuntu-12:~$ docker --version Docker version 1.2.0, build fa7b24f

adammcmaster commented 9 years ago

This looks like a bug in Docker 1.2. We don’t use the latest Docker releases in production precisely because they tend to introduce new bugs. The Vagrantfile for Panoptes needs to use Ubuntu 14.04 and then apt-get install docker.io from the Ubuntu repos instead to use Docker 1.0.1 (not just for this, but because that’s the environment it will be running under in production so it makes sense to use it for development as well).

On 7 Oct 2014, at 14:06, Campbell Allen notifications@github.com wrote:

In the vagrant box it's: vagrant@ubuntu-12:~$ docker --version Docker version 1.2.0, build fa7b24f

— Reply to this email directly or view it on GitHub.

camallen commented 9 years ago

sweet - can you mode the vagrant file for this?