Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mongo data is in a volume and is lost #1

Closed
electricworry opened this issue Dec 13, 2017 · 1 comment
Closed

Mongo data is in a volume and is lost #1

electricworry opened this issue Dec 13, 2017 · 1 comment

Comments

@electricworry
Copy link

I believe there is an issue with this Dockerfile in that the CVE database that is built during image creation is discarded when complete. This is due to the fact that the mongo image being used stores data in a VOLUME by default. (I think the intention of the mongo image is that the data will be introduced in a container, not during image creation.)

This can be resolved by changing the dependency from 'mongo' to 'mongo-novol', which someone has created for instances such as this.

Cheers.

@ttimasdf
Copy link
Owner

Wow, indeed. I pulled down with nothing in image. But how did it wiped the data in the container, I wonder

ttimasdf added a commit that referenced this issue Dec 16, 2017
@electricworry electricworry closed this as not planned Won't fix, can't repro, duplicate, stale Nov 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants