

The -resize option assumes a size is specified in megabytes.


The approach is similar on Linux and Windows.
#Virtualbox add more disk space apk#
Look for '/dev/sdaN', where N is your partition for '/var/lib/docker', in my case /dev/sda3Ģ - Shut down your VM, open VM Settings > Hard Disk(s) > change size of your 'virtual_disk.vmdk' (or whatever is your machine's virtual disk), then click Apply ( see this guide).ģ - Install cfdisk and e2fsprogs-extra which contains resize2fs > apk add cfdiskĤ - Run cfdisk and resize/expand /dev/sda3 > cfdiskĭevice Boot Start End Sectors Size Id Type Here are the steps in text: Open the Virtual Media Manger using Ctrl-D or File > Virtual Media Manager Under the hard disks tab click 'New' Follow the wizard Go back to the VM settings, select storage and select 'Add Hard Disk' (To the far right of IDE Controller) The first disk in the list is selected. Extend Virtual Disk If the virtual disk is defined as dynamically allocated (Dynamically allocated differencing storage), the existing disk is extended using the VBoxManage modifyhd command. For example -resize 46080 would allocate 45 Gb of space VBoxManage modifyhd YOURHARDDISK. dev/sda3 17.6G 4.1G 12.6G 25% /var/lib/docker Find the name of the virtual machine you want to resize cd YOURVIRTUALMACHINE Resize the VDI file. When you allocate memory, you are just doing it as part of the application, so it has no effect. eventually this guide helped me to resize/expand my docker volume.ġ - Check size of partition containing /var/lib/docker > df -h Virtual Box isnt a true hypervisor and runs on top of the OS. I ran into similar problem with my docker-vm (which is 'alpine-linux' on VMware Fusion in OS X): write error: no space left on device alpinevm:/mnt/hgfsįailed to build.
