Search code examples
dockervirtualboxboot2docker

How to start a docker container when windows boots


Is there a recommended way of starting a docker container when windows boots?

I'm investigating around vboxmanage guestcontrol (see: http://www.virtualbox.org/manual/ch08.html#vboxmanage-guestcontrol) but I'm don't figure out all of that.

Any best practice to recommend?

Regards,

Xavier


Solution

  • I solved it by doing this:

    boot2docker down
    boot2docker up
    eval "$(boot2docker shellinit)"
    docker run myImage