boot2docker – simplify working with docker containers on a mac

/Geek Warning – all others flee and hide to avoid boredom./

Boot2Docker is a wrapper that makes working with dockers on a local computer just a bit easier.

That’s the goal. Keep it simple and it works. If we really want to keep it simple we now have kitematic to run docker containers with a GUI.

GUI for Docker Container Development
GUI for Docker Container Development

Plus people in programming mode sometimes get insecure and like to (seriously) debate Vi or Emacs as if those who don’t know it are of a lesser kind. I believe in letting compilers deal with my long select-case/kwargs/collections/dictionaries/whatever you want to call them. Thus I LOVE seeing tools that make programming EASIER. Especially visual ones even though I’m back to preferring the command line.

But back to boot2docker for working with containers locally. On a Mac, it’s nothing most of us haven’t done already with Virtual Box (free) or VMWare (not free but faster than VB) sharing a local folder into the VM. We all do this so we can use our dev tools without even more junk into the VM itself.

Number 1 reason to use it if you use a Mac? It doesn’t make me install homebrew (not a fan – sorry) and mess up the $PATH on my Macs. And Containers are just cleaner than virtualenvs as there are no dependencies, only attached containers. ‘Tis beautiful.

OK, the point of this post – if you are having any problems installing boot2docker on your Mac as I did, first it probably is NOT your fault. OK, well maybe it is because we all like bright shiny things and have a ton of junk installed. For me I would install it and it just would not start up. I found the documentation sort of glazed over a few things. So here you go.

  1. Upgrade to the latest Virtual Box BEFORE installing boot2docker. For me it just hung and didn’t give me a clue what the problem was. Do this first.
  2. Let b2d put its .pem and other keys where it wants to. You don’t need to even put these in your .ssh folder either.
  3. I did put it’s three environment variables in my bash because I’m lazy.
  4. You don’t have to sudo when you call “boot2docker up”. It doesn’t like that.
  5. You don’t have to make an entry in your /etc/hosts file for the dev server. Maybe more convenient but the IP works just as well.
  6. SSH – I made this waaaay 2 complex. it’s like vagrant. Just type “boot2docker up” followed by “boot2docker ssh” and you are in.

boot2docker-self-sufficient-runtime

Again – keep it simple and don’t make life complicated like I did. Install the boot2docker app for mac from the site. Install the package for Mac. Then from terminal:

boot2docker init

You only have to run that once. Then from anywhere:

boot2docker up
boot2docker ssh
exit
boot2docker down

Of course you might want to try out some of the exercises after the “boot2docker ssh” line when you are in the environment. Just trying to keep things simple, but no simpler than needed.

How do you know _____? I’m not always sure…. it just happens

Every year at SXSW I feel a little older. It doesn’t help that right before SXSW 2015, where it was my privilege to be a speaker for the third time at the Interactive festival, that twitter sent me a notice congratulating me on being on twitter for 8 years.

8 years on twitter. At least I don’t post photos of every piece of sushi I eat. Although I almost posted a photo of the biscuits-and-gravy I ate this morning. (Shut it – it’s called “carb’ing up” for tennis tomorrow.) Anyway it’s all a blur although I know I can blame Erica O’Grady for getting me on twitter for sure.

But the iphone. It was 2007. Kool Aid? Check. And well….. In Adam Tow’s photo I’m the guy with the brown shirt and arm raised on the left hand side at the back. Yup that’s me. I haven’t always had a beard.

When I heard about iphone dev camp, by rss feed of course, I was on an airplane. My first iphone was purchased by proxy by a great friend named Imelda who was willing to get me one on the first day given I was flying someplace else on the day they were released. We registered on a wiki because what could go wrong, right?

iphone dev camp 1 wiki 2007
iphone dev camp 1 wiki 2007

Screen Shot 2015-03-20 at 7.20.15 PM

In the end there I was at iphone dev camp 1 when apple didn’t even have an SDK yet. But I was there in San Francisco in 2007. Right after Adam took his photo I had to run around and take my own photo to post to my flickr set from iphone dev camp 2007.

When I got back to Houston I had a bunch of new friends and wound up presenting at Netsquared Houston on the iphone and the good the bad and the ugly. I’ve left the iphone, come back, left again, came back again and right now I really enjoy the camera on my iphone 6. In 2007 this was my presentation on the iphone at netsquared.

At SXSW this year I saw a lot of these folks, but not enough. It’s a marathon and not a race. Now I’m more excited about hexacopters, remote work environments, how best to give people meaningful work, create a great product, and keep our clients not just happy but evangelists. A lot has changed.

There are too many names to even begin to give credit to for these adventures and the fact that they have resulted in tangible benefits that went right back to our employees in profit sharing and training and benefits over the last 17 years since I started the company in 1997. Yet “I” didn’t start the company, I jumped off the cliff and my family and friends were like “well look what the hell he did now? Guess we gotta help him till he comes around.” And they did.

Here’s to the crazy ones.

Then. And now. Here is a humble thank you to those who keep us alive, pick us up when we fall, put up with us working three days straight without sleep when we get in the zone. And still love us.

Here’s to the ones who love and care for the crazy ones, because we are nothing without you. And I say that with the utmost humility. I am no Steve Jobs. I am not Rosa Parks. I’m a person who is terrified yet at the same time resolutely certain of the outcome.

“Remembering you are going to die, is the best way I know to avoid the trap of thinking you have something to lose. You re already naked. There is no reason not to follow your heart.” – Steve Jobs

“Stay hungry. Stay Foolish.”

Thank you. And thank you Steve for the inspiration….

In closing…. “Tendenci – we just want to change the world. What’s so hard about that?

#peace