Boot2docker-vm machine does not exist

I have been working on a spree application that I have "dockerised" and occasionally I would return to boot2docker and find an error starting up.

What this had meant was having to destroy the VM and then rebuilding all my containers. This was annoying an not very feasible as the process for rebuilding containers required the download of a large dataset which was taking up to 20 minutes.

I stumbled on to this solution from stackoverflow that solved my problem and I thought I would share as for some reason it isn't marked as the correct answer.

  1. Boot the VM using Virtual box instead of b2d

https://gist.github.com/ryardley/cde6095afd5e527f32b6

Wait a minute for it to boot up.

  1. Then shut it down gracefully:

https://gist.github.com/ryardley/df569cef34283f6c8dd1

This means I dont loose my containers and need to wait 20 minutes for everything to rebuild.

Rudi Yardley

Read more posts by this author.