I am using docker toolbox on Windows 7 to run docker. (docker version 1.9.1)
As it turns out the docker machine creates its VM at C:\Users\username\.docker\machine\machines\default. And as I commit the images the size of VM at this location bloats up. Since its Windows, cant afford the luxury of space on the C drive.
Is there any way I can change the location of the default machine?
Simply use the VirtualBox graphic interface to relocate the file
disk.vmdk
:C:\Users\{myUsername}\.docker\machine\machines\default\disk.vmdk
into another folder, sayF:\docker-image\
.VirtualBox
, selectdefault
VM and openSettings
.Storage
, select currentdisk.vmdk
and release it (or delete it).Choose Virtual Hard Disk File...
and search for copied file inF:\docker-image\
File
, selectVirtual Media Manager...
and release or remove olddisk.vmdk
4.
, it's done!I have had a bit of trouble with any of the solutions above but this is what worked for me:
MACHINE_STORAGE_PATH
environment variable to point to your desired directory/folder..docker
directory..docker
folder from the Users directory.start.sh
script and added the line at the top:e.g.