I created a mariadb docker container on raspberrypi. Automatically a docker volume for the database data was created. This volume resides in /var/lib/docker/volumes/
Since filesystem directory root is located on a partition of the sd card, the database is also located on the sd card.
This presents two problems. One, since the db may get very large it may run out of space. Two, since there will be a lot of writes to the db, the sd card might wear out.
Should I move filesystem root from the sd card to the large hard disk?