Add support for multiple Docker API versions

Add support for Docker API v1.12

Fixes #106
We can drop this else, as long as the comments in this method.

Could ``Compare`` be unexported?