Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I make docker-machine create a VM in a specific location

Tags:

docker

My development machine is a laptop with a smallish SSD and a huge external disk. Ideally I'd like docker-machine to use the external drive rather than filling up my internal disk.

I know that I can hack it with mounts and so on but is there a way to make the docker-machine command use a directory that I specify instead of defaulting to ~/.docker/machine/?

like image 673
artran Avatar asked Aug 14 '15 18:08

artran


1 Answers

Have you tried this option -s, --storage-path "Configures storage path [$MACHINE_STORAGE_PATH]"?

You can see it in docker-machine --help.

like image 69
Leandro M Barbosa Avatar answered Nov 13 '22 06:11

Leandro M Barbosa