-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
Using the dockerfile:
FROM postgres:9.3
COPY postgresql.conf /var/lib/postgresql/data/postgresql.conf
(the content of postgresql.conf doesn't matter - at the moment it is a duplicate of what would be there when the image starts)
I can build the image, but when I run it I get the error:
postgres_1 | initdb: directory "/var/lib/postgresql/data" exists but is not empty
postgres_1 | If you want to create a new database system, either remove or empty
postgres_1 | the directory "/var/lib/postgresql/data" or run initdb
postgres_1 | with an argument other than "/var/lib/postgresql/data".
Why can't I just replace the config file in this way?
yogeshExplore, docteurklein, FrankFang, cocowalla, hugo-lorenzo-mato and 5 more
Metadata
Metadata
Assignees
Labels
No labels