6

how can i get to my host the postgresql.conf from a container? or where can i see the default one? one coworker gave me his config file to compare it to my own to see some changes i would need to make.

the file path on the container is:

postgres=# show config_file;
               config_file                
------------------------------------------
 /var/lib/postgresql/data/postgresql.conf
(1 row)

but i dont know how to get the file from the container to my host

0

1 Answer 1

6

By using Docker cp:

docker cp <container>:/var/lib/postgresql/data/postgresql.conf

Take a look at the following links:

StackOverFlow Resource Docker Documentation

Sign up to request clarification or add additional context in comments.

1 Comment

i should have searched better, this is duplicated, thanks

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.