how to install Docker on an external HD

how to change the root directory of Docker in windows or how to install Docker on an external HD?

Configuration → Ressources → Advanced → “Disk Image location”.

Are you sure you want to set the Disk image location to a drive that is not permanently attached to your host? I strongly advise against moving the disk image to a drive that is not permanently attached to the host.