Boot2Docker + Console2

Some of you are, no doubt, familiar with the pretty fantastic Console2 program. Scott Hanselman wrote about it which does make life in Windows much more bearable.

Now, for those of you who are not familiar with Docker, I am so, so sorry for you. Docker is a pretty fantastic way of getting things up and running fast. With only a couple hundred MB of downloads you can have isolated images running PostgreSQL, Python, Ruby, Java, HAProxy, Nginx, and more with only a few commands. You can orchestrate just a ridiculously cool amount of interaction with not much effort.

On Windows, Docker uses a smaller VM called boot2docker that runs within VirtualBox. By default the launcher runs in something that looks an awful lot like a command window, so I thought surely there must be a way to get it running inside of Console2. But I kept tripping up. Well just a few minutes ago I decided to give it another go and sweet, sweet success.

Assuming your Docker install is in the default place (I don't remember changing mine, so I'm sure mine is), here's the settings you need for your Docker tab:

Shell: cmd /k "C:\Program Files\Boot2Docker for Windows\"
Startup dir: C:\Program Files\Boot2Docker for Windows\

And that's it. Now you can fire up boot2docker in your Console2 shell. Isn't that nice?