def compare_version(v1, v2):
 s1 = StrictVersion(v1)
 s2 = StrictVersion(v2)
 if (s1 == s2):
  return 0
 elif (s1 > s2):
  return (-1)
 else:
  return 1

def compare_version ( v1 , v2 ) : s1 = StrictVersion ( v1 ) s2 = StrictVersion ( v2 ) if ( s1 == s2 ) : return 0 elif ( s1 > s2 ) : return ( - 1 ) else : return 1
compare docker versions .