I have a container that saves data into a database stored into a Docker volume. Now, for testing and debugging purpose, I would like to access the .db file with software like DBeaver to check if it correctly updates.
Is there a way to access the file/s inside a volume to do so?
Is this database something that you can access just by reading the file?
On Linux, depending on your storage driver, you could read the volume content from the host. The local volumes are in /var/lib/docker/volumes/VOLUMENAME by default. It would require root privileges. You could change that location or just copy the file out from the container occasionally: