I have MariaDB 10.1 running in a Docker container and I want to upgrade to 10.2. My data is persisted in a volume which /var/lib/mysql is mapped to, my.cnf, is not mapped and unchanged. What is the correct procedure to end up with a Maria 10.2 container with my data intact?
The procedure I considering is as follows:
- Stop the 10.1 container
- Duplicate the data volume
- Create a new 10.3 container, mapping the data directory to the duplicated volume
- Start the new container
My concern in this is step 3. During a 'standard' (non-Docker) upgrade, might the upgrade process not alter the data directory in some way? And if so, any changes that should be made to the /var/lib/mysql directory during upgrade would not be made to the volume, as its outside Docker.
Is my procedure correct? Is my concern justified?