agent/dockerclient/dockerapi_compare_versions.go
func compareDockerVersions(lhs, rhs dockerVersion) int {
	switch {
	case lhs.major < rhs.major:
		return -1
	case lhs.major > rhs.major:
		return 1
	case lhs.minor < rhs.minor:
		return -1
	case lhs.minor > rhs.minor:
		return 1
	}
	return 0
}
func compareDockerVersions(lhs, rhs dockerVersion) int {
	switch {
	case lhs.major < rhs.major:
		return -1
	case lhs.major > rhs.major:
		return 1
	case lhs.minor < rhs.minor:
		return -1
	case lhs.minor > rhs.minor:
		return 1
	}
	return 0
}
// compareDockerVersions compares two docker api versions, 'lhs' and 'rhs', and returns -1 if lhs is less
// than rhs, 0 if they are equal, and 1 if lhs is greater than rhs