You should definitely fix this first before upgrading.
One thing you can try is to find the biggest folder. It's likely the primary database.
find /var/lib/docker/volumes/ -name pg_hba.conf 2>/dev/null | xargs -I {} sh -c 'du -sh $(dirname {})' | sort -h