So I'm still trying to figure out what would be the best way to use docker in my current infrastructure.
I've been thinking of creating a data-volume containers, that containers would hold the data volume for mongodb (this seem to be pretty popular approach).
If I do that, how would I update the container without loosing the data inside it?
========== EDIT ==========
Clarification:
I want to be able to "update" the container by, basically, rebuilding from Dockerfile
. This means that I'll need to spin up a new container, but I want to keep the volumes from the old one