I have a MySQL image that I launch a container from. I set up dbs , import sql-dump files and create users every time the container is created.
When I work on the container I create various data that are stored in MySQL.
I would like to save these extra data in a data volume container [DVC] so I could give the DVC to a colleague and continue from where I stopped.
The thing is that he will also launch a MySQL container and the initial procedure will be repeated from scratch.
As I have read, if I mount [--volumes-from
] the volumes [/etc/mysql
and /var/lib/mysql
] from the DVC , the already existing data will be covered and will not be readable.
Is it possible to use volumes with directories that already have data in them?