I am writing a Docker file to configure an image for testing a web application. I base it on the image of the tutum / lamp ( https://github.com/tutumcloud/tutum-docker-lamp/blob/master/Dockerfile ) because it seems like a good base to start with.
As part of my docker file, I want to create a mysql database and create something in it. However, the tutum / lamp image declares VOLUME ["/etc/mysql", "/var/lib/mysql" ] , so if I understand correctly, any changes I make to the MySQL database in the Docker file are not will be saved.
- Do I understand this correctly?
If yes,
- Is there a way to “decompile” these volumes so that these directories are part of the union file system, like everything else?
Thanks!
source share