

Run the following command to check the available diskspace inside the docker vm: docker run -rm -privileged debian:jessie df -h Wait for it to finish resizing and then quit the app and shutdown the gparted machine.

Click Resize in the toolbar and drag the partition limit to fill the whole space. You should see swap space, the main partition and 100GB of free space. For any questions asked (boot option, keyboard layout, language) the default is ok.ĭouble click the gparted Icon. Wait for the VM to boot (can take a long time). Qemu-system-x86_64 -drive file=Docker.qcow2 -m 512 -cdrom ~/Downloads/gparted-live-0.27.0-1-i686.iso -boot d -device usb-mouse -usb Qemu-img info Docker.qcow2 # check the new size Qemu-img resize Docker.qcow2 +100G # make it 100GB larger Qemu-img info Docker.qcow2 # shows you current disk size brew updateĬd ~/Library/Containers//Data/64-linux/

Resize existing Docker for Mac disk imageĬlose the Docker for Mac Application and wait for it to shutdown completely. There is no UI element for this yet.Ĭredit for this procedure goes to and was taken from docker/for-mac#371 (comment). $ rm ~/Library/Containers//Data/64-linux/Docker.qcow2įor anyone wanting to use an external drive, you can also change the location of the Docker.qcow2 by editing the database key 64-linux/disk/path. # delete the disk - this unfortunately deletes all images and containers

$ git commit -s -m 'increase size to 128GiB'ġ file changed, 1 insertion(+), 1 deletion(-) # The 64-linux/disk/size file (and the disk dir) may not exist. HEAD is now at 8635944 last-start-time changed at 1480009710 $ cd ~/Library/Containers//Data/database/ # I can increase or decrease the default cap by: Image: /Users/djs/Library/Containers//Data/64-linux/Docker.qcow2 $ /Applications/Docker.app/Contents/MacOS/qemu-img info ~/Library/Containers//Data/64-linux/Docker.qcow2 If you are getting the error: No space left on deviceĬonfiguring the qcow2 size cap is possible in the current versions: # my disk is currently 64GiB UPDATE: The instructions here are no longer necessary! Resizing the disk image is now possible right from the UI since Docker for Mac Version 17.12.0-ce-mac49 (21995). Set the default size for new Docker for Mac disk images
