Skip to content

Using postgresql with external volume from Mac  #46

Closed
@volkanunsal

Description

@volkanunsal

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions