I want to run Jenkins in a docker container, and according to my understanding of this thread the best practice for managing the container's data is to use docker's new volume API (so I can update the Jenkins container without losing my data)
My concern is losing the data somehow, so I want to store it using a version control system, e.g. Git. That way I can track the changes done in my team's build and get things working again if someone makes a mess.
The issue that is not clear to me is how to version control the data? Also, I want to be able to get my container running with restored data in a flash (a simple script/command)
Note that the version control system is not the issue here, I am looking for a best practice for working with containers' data(volumes) in a way that allows tracking changes and restoring the "system" quickly if something breaks.