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

FATAL: could not create lock file “/var/run/postgresql/.s.PGSQL.5432.lock”: Permission denied #10

Closed
honi opened this issue Aug 4, 2014 · 2 comments

Comments

@honi
Copy link

honi commented Aug 4, 2014

I was running into that issue using this image without any custom Dockerfile.

$ boot2docker version
Client version: v1.1.2
Git commit: 429947b

$ docker version
Client version: 1.1.2
Client API version: 1.13
Go version (client): go1.2.1
Git commit (client): d84a070
Server version: 1.1.2
Server API version: 1.13
Go version (server): go1.2.1
Git commit (server): d84a070

I've managed to fix the issue with the following:

sed -ri "s/^#unix_socket_directories = .*$/unix_socket_directories = '\/tmp'/" "$PGDATA"/postgresql.conf

Though I had to use a custom docker-entrypoint.sh because at build time there is no postgresql.conf file.

@tianon
Copy link
Member

tianon commented Aug 4, 2014

This is a duplicate of #4 which was fixed in #6 and will be on the Hub soon (hopefully within 20-40 minutes). 😄

@tianon tianon closed this as completed Aug 4, 2014
@honi
Copy link
Author

honi commented Aug 4, 2014

My bad. Didn't see the other issue.
Thanks!

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

2 participants