1

My Question is if I use a docker container (say postgres) and have a named volume created to store the data from container to local as implied here (any many more articles and forums). The data remains as long as the volume is up, even if I stop the container or even remove the image. But if I remove the volume it self the entire data is wiped clean. Is it possible to prevent this? if yes, how? also is it possible to take the back up of /var/lib/postgresql/data from container to local without it being effected by volume removal?

Akash Jain
  • 684
  • 9
  • 23

0 Answers0