Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Data Loss if Update to New Docker Image #148

Open
grecs opened this issue May 10, 2016 · 5 comments
Open

Data Loss if Update to New Docker Image #148

grecs opened this issue May 10, 2016 · 5 comments

Comments

@grecs
Copy link

grecs commented May 10, 2016

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.

@swannysec
Copy link
Contributor

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.

@sroberts
Copy link
Contributor

@grecs The API does allow export/import.

@grecs
Copy link
Author

grecs commented May 10, 2016

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/

@grecs
Copy link
Author

grecs commented May 13, 2016

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.

https://zeltser.com/metasploit-framework-docker-container/

@swannysec
Copy link
Contributor

That's exactly what I was going to recommend. I will look at amending this
this weekend, but feel free to give it a go and submit a PR if you get
there before I do.
On May 12, 2016 11:01 PM, "grecs" notifications@github.com wrote:

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.

https://zeltser.com/metasploit-framework-docker-container/


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#148 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants