Skip to content

Using postgresql with external volume from Mac  #46

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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