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?