As boot2docker init -m
did not work in my version of boot2docker, I just used VBoxManage command:
VBoxManage modifyvm boot2docker-vm --memory 3500
Also, using this I believe you can avoid destroying your VM, you should just stop
it and then start
again.