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

Using postgresql with external volume from Mac #46

Closed
volkanunsal opened this issue Jan 7, 2015 · 4 comments
Closed

Using postgresql with external volume from Mac #46

volkanunsal opened this issue Jan 7, 2015 · 4 comments

Comments

@volkanunsal
Copy link

I am trying to mount it directly from the Mac file system.

docker run  -v $HOME/postgres_data:/var/lib/postgresql kartoza/postgi

This results in a bunch of errors about user permissions:

initdb: could not create directory "/var/lib/postgresql/9.3/main/global": Permission denied
2015-01-07 16:33:52 UTC FATAL:  data directory "/var/lib/postgresql/9.3/main" has wrong ownership
2015-01-07 16:33:52 UTC HINT:  The server must be started by the user that owns the data directory.

Can a directory shared from Mac file system ever have the read/write permissions that postgres apparently needs?

@yosifkit
Copy link
Member

yosifkit commented Jan 9, 2015

This seems to be related to boot2docker/boot2docker#629

@sebglon
Copy link

sebglon commented May 28, 2015

I have the same error on linux withous boot2doker

voici mes infos de version
Client version: 1.5.0
Client API version: 1.17
Go version (client): go1.4.1
Git commit (client): a8a31ef
OS/Arch (client): linux/amd64
Server version: 1.5.0
Server API version: 1.17
Go version (server): go1.4.1
Git commit (server): a8a31ef

@chaintng
Copy link

I also have this issue using osx docker toolbox

@yosifkit
Copy link
Member

There is discussion over on docker-library/mysql#99 dealing with the same issue. Perhaps we need to add something like docker-library/mysql#161 to postgres?

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

4 participants