Docker Volumes

  • 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?

  • I would (and have) move both the docker storage location as well as all your container volumes to the hard disk (the process is pretty well-documented on the forum somewhere). Keep the SD card abuse to just what OMV is writing. Containers and logs tend to multiply...

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!