Simon
Simon

Reputation: 1536

docker postgres, fail to map volume in windows

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?

Upvotes: 1

Views: 348

Answers (1)

VonC
VonC

Reputation: 1329672

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

Upvotes: 1

Related Questions