Mongo: How to create a Mongo Docker Image with default collections and data?

Created on 6 Nov 2015  路  2Comments  路  Source: docker-library/mongo

Most helpful comment

There is a volume defined in /db/data so that directory will not get saved in the resulting image (https://docs.docker.com/engine/userguide/dockervolumes/#data-volumes).

All 2 comments

There is a volume defined in /db/data so that directory will not get saved in the resulting image (https://docs.docker.com/engine/userguide/dockervolumes/#data-volumes).

@yosifkit thanks for pointing this out. Was not aware of how volume works in Docker.
I will try to mount a different volume for my own db files.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

thomasbeauvais picture thomasbeauvais  路  5Comments

dev-nicelee picture dev-nicelee  路  6Comments

zedesk picture zedesk  路  3Comments

deployable picture deployable  路  3Comments

tdaleibm picture tdaleibm  路  5Comments