Docker Community Forums

Share and learn in the Docker community.

Docker 2 drives (SSD and HDD) how to select containers execution drive


(Lebleu) #1

Hello,
I have a server with 2 drive, first one is HDD RAID 1 and second one is SSD RAID0. So one for performance and one for redundancy.

I would like to use docker on this server and choose at the container creation which drive will be used.
How can i do this?

First option, one docker instance is enough and i can set something like /mnt/hdd and /mnt/ssd and select wich path will be used by the container.
Second option, i need 2 docker instance, one fully on HDD and second fully on SSD. If so how to migrate easily images/containers from one to other?
Third option, i don’t know, maybe someone have better idea?

Thank you for your help.