How do I change the Docker image installation directory?

I would like to make Docker get images from an EFS/AWS volume, there should not be any performance penalty right?