Tuesday, February 2, 2016

Running Docker-machin in another location than C:/Users



In order to run docker-machine to other location than default, use the -s option or --stiorage-path as follows:

$docker-machine -s /f/.docker/machine/machines/ create --driver=virtualbox dev

However later docker runs will still point to default path, so in order to get the env to the new docker-machine you ahve to run the followinG:

$docker-machine -s /f/.docker/machine/machines/  env dev

To change default pathway to docker use :
MACHINE_STORAGE_PATH=/f/.docker/machine/machines/

You can add this in your start.sh or ~/.bashrc or in windows env variable to use the other location.




No comments:

Post a Comment