Skip to content

Cannot mount host directory as /var/lib/postgresql/data volume #60

Closed
@mikew

Description

@mikew

This is on OSX using docker-machine. Doesn't happen on Ubuntu, and it's the first time I've seen this behaviour in general.

The simplest invocation is failing:

$ docker run \
→     --volume "$PWD/persistent":/var/lib/postgresql/data \
→     postgres:latest
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"

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