Skip to content

Instantly share code, notes, and snippets.

@imesh
Last active December 18, 2015 13:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save imesh/93cc73c0d9285a490f02 to your computer and use it in GitHub Desktop.
Save imesh/93cc73c0d9285a490f02 to your computer and use it in GitHub Desktop.
Increase Boot2Docker Disk
# Reference
# https://docs.docker.com/articles/b2d_volume_resize/
echo "Cloning existing disk..."
vboxmanage clonehd "/path/to/VirtualBox VMs/boot2docker-vm/boot2docker-vm.vmdk" "/path/to/VirtualBox VMs/boot2docker-vm/boot2docker-vm-v1.vdi" --format VDI --variant Standard
echo "Increasing disk size..."
vboxmanage modifyhd "/path/to/VirtualBox VMs/boot2docker-vm/boot2docker-vm-v1.vdi" --resize 40960
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment