Docker Community Forums

Share and learn in the Docker community.

Where is postgres container data?


(Rafiqul) #1

Can anyone help suggesting to find my data in postgres container? I have created database and tables and populated with data. But i didnt see data files in my container.

I have navigated in:
/var/lib/docker/aufs/diff/a73caf9f696c3620d55863a952971f99f51ec2f610d84bdd5436b6c6100374c3/var/lib/postgresql/data#

a73caf9f696c3620d55863a952971f99f51ec2f610d84bdd5436b6c6100374c3: is my container ID.

Even docker inspect container shows data path: /var/lib/postgresql/data
did not find anything here too.
Can anyone help? thanks.


(Mohammedazfar) #2

Try docker inspect and find the item type Volumes