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

How to add persistent storage? #13

Closed
amareto opened this issue Dec 9, 2016 · 2 comments
Closed

How to add persistent storage? #13

amareto opened this issue Dec 9, 2016 · 2 comments

Comments

@amareto
Copy link

amareto commented Dec 9, 2016

Is there a way to add persistent storage to save db and conf?

@samuelebistoletti
Copy link
Owner

Hi,
I tested the container against persisence, all data should be kept if you stop the container and start it again, using Docker commands in README -

To stop the container launch:

docker stop docker-statsd-influxdb-grafana

To start the container again launch:

docker start docker-statsd-influxdb-grafana

@ssbarnea
Copy link

ssbarnea commented Dec 8, 2018

I am not sure this answered the question. Container persistence is achieve my mounting data volumes but I see not data volume documented in container specification, at all.

Example: unifi docker container uses /config for persisting configuraiton, jenkins official containers rely on /var/jenkins_home for data persistance.

Also as a rule these containers are supposed to be succesfully start with an empty data volume, and they would populate them with all data that needs to be persisted. A container can be destroyed at any time and could be spawned on a totally different manchine but the data volume is supposed to be remounted.

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

3 participants