I am using and existing mongodb image to create a docker container. Then I create some databases and collections in that container. However, when I create and image from that container, mongodb does not show my databases and collections.
I guess its something to do with data volumes not copied over to image. Is there a workaround for this?