1

I wish to store my persists data in my local D:\dockerData\postgres9.6. Below is my docker command

docker pull postgres
docker run -d -v /d/dockerData/postgres9.6:/var/lib/postgresql/data -p 5432:5432 postgres

It successful create a container and I can use pgAdmin to access and create database.

But I found out that there is no file in my D:\dockerData\postgres9.6. I exec bash into the container, there is at least 20+ files inside /var/lib/postgresql/data.

Anyone can point out which part goes wrong?

1 Answer 1

1

It depends what kind of Docker you are using on Windows:

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.