-
Notifications
You must be signed in to change notification settings - Fork 92
Data Loss if Update to New Docker Image #148
Comments
Thanks for pointing this out! I'll see if I can work something out when I formalize the Docker image down the road. For now, I would treat this as dev/testing only. |
@grecs The API does allow export/import. |
Exactly. Best practice for docker is to not store data in containers. The application container should mount a storage area and use that. That way when you update the container containing threat_note, it doesn't affect the data. Here is more info I found on the topic. Still, this seems like a future enhancement. https://getcarina.com/docs/best-practices/docker-best-practices-data-stateful-applications/ |
Saw this article today on how they did something similar with MSF. Used the -v to specify a data location that exists outside of the container. |
That's exactly what I was going to recommend. I will look at amending this
|
I've been trying to run this via Docker, partly to learn more about Docker, and noticed that there is no easy way save data if I update to a new docker image (e.g., if going from 3.1 to 3.2 version of threat_note and wanting to stay ). Recommendations online seem to be to have another "data" docker container and have the threat_note container just reference the data container. Not sure if it is worth doing something like yet but thought I would throw it out there.
The text was updated successfully, but these errors were encountered: