every VOLUME declared in a Dockerfile will result in a volume with random name beeing created, unless you map a named volume or host path to the container path.
Example:
Snippet of a Dockerfile:
…
VOLUME /data/test
…
If you don’t map a volume with -v ${named volume name or path}:/data/test
you will end up with a new randomly named volume in /var/lib/docker/volumes.