Change volumes only location

Hello,

I would like to move Docker volumes only to a persistent partition (say /data) and let other Docker data such as images in the default partition (/var/lib/docker).

I know that using the option --dataroot in the docker.service file would change the location of /var/lib/docker. But is it possible to change volumes location only?

Thanks