docker-machine virtualbox在OSX上的映像位置

我在OSX(Mac Book)上使用docker-machine,并将图像放在~/.docker/machine 。 我的驱动器已满,我想将图像移动到另一个驱动器。 如果有安装选项或者为.docker和子目录指定不同位置的方法,那将会很好。

有没有人没有一个简单的方法来做到这一点?

这可以使用MACHINE_STORAGE_PATH环境variables或通过指定-s, --storage-path

 $ export MACHINE_STORAGE_PATH=/Volumes/Drobo/machine $ mkdir $MACHINE_STORAGE_PATH $ docker-machine create test -d virtualbox Creating CA: /Volumes/Drobo/machine/certs/ca.pem Creating client certificate: /Volumes/Drobo/machine/certs/cert.pem Image cache does not exist, creating it at /Volumes/Drobo/machine/cache... No default boot2docker iso found locally, downloading the latest release... Downloading https://github.com/boot2docker/boot2docker/releases/download/v1.8.1/boot2docker.iso to /Volumes/Drobo/machine/cache/boot2docker.iso... Creating VirtualBox VM... Creating SSH key... Starting VirtualBox VM... Starting VM... To see how to connect Docker to this machine, run: docker-machine env test $ $ ls -l /Volumes/Drobo/machine/machines/ total 0 drwx------ 13 brianz staff 442 Aug 28 16:37 test