0

In docker-compose.yml we are able to define persistent volumes:

volumes:
  -foo:bar

For this to work, the container has to be rebuild.

Now I need to "save" the data on a non-persistent folder in a running container. Is there a way to do this.

Can I add a persistent volume to an existing and mounted container?

caliph
  • 1,389
  • 3
  • 27
  • 52
  • https://stackoverflow.com/questions/28302178/how-can-i-add-a-volume-to-an-existing-docker-container – Vitalii Ilchenko May 05 '20 at 18:57
  • 1
    Does this answer your question? [How can I add a volume to an existing Docker container?](https://stackoverflow.com/questions/28302178/how-can-i-add-a-volume-to-an-existing-docker-container) – Danilo Körber May 05 '20 at 19:34

0 Answers0