mysql - Patterns for Docker DB Snapshot -


what pattern making docker image containing database snapshot?

essentially want create docker image when starts has database running in particular state. i'm not bothered persisting changes database (it should possible write database, don't care whether changes hang around after restart).

i've seen couple of repos on docker registry load data dump on startup, quite slow. i've worked out how create empty database image, set running, add data it, commit snapshot, feels quite convoluted. feels there should better pattern doing this. i'm hoping else has had problem , has come pattern it.

in particular case need use mysql 5.1 none of repos on docker registry quite work because old version, i'm happy copy 1 , adapt it.


Comments

Popular posts from this blog

html - height not adding height to a empty div -

Oracle SQL. How to select specific IDs where value of columns specify criteria? -

python - Robot Framework location and name of keyword -