我正在使用Mac Book上的docker-machine,它将镜像放置在
~/.docker/machine
中。我的驱动器几乎满了,我想将镜像移动到另一个驱动器。如果有一种安装选项或指定.docker
和子目录的不同位置的方法,那就太好了。
有人知道如何轻松地做到这一点吗?
~/.docker/machine
中。我的驱动器几乎满了,我想将镜像移动到另一个驱动器。如果有一种安装选项或指定.docker
和子目录的不同位置的方法,那就太好了。
有人知道如何轻松地做到这一点吗?
MACHINE_STORAGE_PATH
或指定其中一个-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