Have a look at this directory where you will find all the volumes:
sudo ls -la /var/lib/docker/volumes
I was looking for the data directory of my Nextcloud instance which I’m running with a docker-compose file.
I found all the data in this directory:
Thanks to this link finding the answer I was looking for. Please note that you need root permissions to access these files.