Skip to content

"/var/lib/postgresql/data/global" Under boot2docker on Yosemite #28

Closed
@fredjean

Description

@fredjean

I am trying to run this box on a Mac OS 10.10 system with boot2docker and Docker 1.3 running. Here is the output that I get:

$  fig run db
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.

The database cluster will be initialized with locale "en_US.utf8".
The default database encoding has accordingly been set to "UTF8".
The default text search configuration will be set to "english".

Data page checksums are disabled.

fixing permissions on existing directory /var/lib/postgresql/data ... ok
creating subdirectories ... initdb: could not create directory "/var/lib/postgresql/data/global": Permission denied
initdb: removing contents of data directory "/var/lib/postgresql/data"

I am having it use an external volume so that the database can persist between each run. This is done through fig:

db:
  image: postgres:9.3
  ports:
    - "5432"
  volumes:
    - "../pg_data:/var/lib/postgresql/data"

I suspect that this is related to #26 . I tried clearing ~/.boot2docker and removing the VM without success.

Let me know if there is something else you need.

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