Docker Tutorial Series

Unless you have intentionally decided to block any news around software in your social feeds, it is likely that you have heard about Docker.

I have written a few posts around Docker and how you can get started with it, but those were more from the point of selecting an OS to learn Docker and so on. Nothing about the details. In the meanwhile, there are tons of excellent resources available to learn Docker from scratch and I have been lucky to read those resources and learn from them.

Continue reading

Docker Machine to control Docker Hosts on Google Cloud

You need to install Docker on the Virtual Machine in your preferred cloud. You provision an instance, SSH into it, install Docker, pull down the relevant images, etc. The steps are more or less similar on most public cloud providers and often you are just dealing with the mechanics of using their cloud console applications and getting this to work. Of course, if you have scripted your way through this, that is fantastic.

But what if there was a single client that you could run from anywhere to setup/control all these Docker hosts across cloud providers. Well that is what Docker Machine aims to do. It is part of the Docker Toolbox that has made available recently and key among them are the standard docker client and a utility named docker-machine that you can use to “create Docker hosts on your computer, on cloud providers, and inside your own data center.”

Continue reading

Running Slackalytics on Google Compute Engine

Slack is an excellent messaging medium for teams and I have been part of teams that have been using it successfully for a while now. My interest in Slack is more along its API and Bots that we can write to customize it to our needs.

Nico Miceli, Google Developer Expert for Analytics, recently wrote a blog post titled Slackalytics, that was of particular interest to me. In the words of the author, Slackalytics is a Bot that is configured in your Slack Channel that can analyze the text messages and send this data over to Google Analytics, all in real time. How cool is that.

To summarize the blog post, you can add an Outgoing Hook to your Slack Team that will monitor each text message and it will currently analyze the text message for number of words, emoticons, question marks and more. This data will be pushed into Google Analytics (Custom Dimensions and Metrics).

Continue reading

Docker Machine #Tip : SSH into the Docker Machine

With the release of the Docker Toolbox, the recommended practice now is to use the docker-machine utility to set the environment for the Docker Machine that you want to target. Then you can use the docker client to run commands against the machine.

This is well and good. But if you prefer that you are inside the shell of the Docker Machine, you could directly ssh into it and run your commands there. The docker-machine client has a ssh command that you could use as follows:

docker-machine ssh <machine-name>

Let us take an example. On my machine, I have the following 3 Docker machines setup:

docker-machine ls
default virtualbox Running tcp://
dev virtualbox Running tcp://
machine007 virtualbox Running tcp://

Now, instead of using the docker-machine env command, I want to directly SSH into say the dev machine.  Just do the following:

docker-machine ssh dev
 ## .
 ## ## ## ==
 ## ## ## ## ## ===
 /"""""""""""""""""\___/ ===
 ~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ / ===- ~~~
 \______ o __/
 \ \ __/
 _ _ ____ _ _
| |__ ___ ___ | |_|___ \ __| | ___ ___| | _____ _ __
| '_ \ / _ \ / _ \| __| __) / _` |/ _ \ / __| |/ / _ \ '__|
| |_) | (_) | (_) | |_ / __/ (_| | (_) | (__| < __/ |
|_.__/ \___/ \___/ \__|_____\__,_|\___/ \___|_|\_\___|_|
Boot2Docker version 1.8.1, build master : 7f12e95 - Thu Aug 13 03:24:56 UTC 2015
Docker version 1.8.1, build d12ea79

Now go ahead and run your docker <command> directly from the shell prompt. You can type exit anytime to return back to your environment.

Docker Toolbox Setup – Windows

With the release of Docker 1.8, Windows users who have been learning Docker using Boot2Docker VM Tool, need to learn a few new concepts to get their environment in place for their Docker learning journey.


The guide below presents how to get the Docker Toolbox Setup on Windows and the general concepts behind Docker Machine, so that if you have been familiar with Boot2Docker before, your journey is a smooth. If this is what your first time installing the Docker toolchain on your Windows box, then you have come to the right place too!

Continue reading