code: func (ds *dockerService) getDockerAPIVersion() (*semver.Version, error) {
  	var dv *dockertypes.Version
  	var err error
  	if ds.versionCache != nil {
  		dv, err = ds.getDockerVersionFromCache()
  	} else {
  		dv, err = ds.getDockerVersion()
  	}
  	if err != nil {
  		return nil, err
  	}
  
  	apiVersion, err := semver.Parse(dv.APIVersion)
  	if err != nil {
  		return nil, err
  	}
  	return &apiVersion, nil
  }
docs: // getDockerAPIVersion gets the semver-compatible docker api version.