public @CheckForNull VersionNumber version() throws IOException, InterruptedException {
  LaunchResult result=launch(new EnvVars(),true,"-v");
  if (result.getStatus() == 0) {
    return parseVersionNumber(result.getOut());
  }
 else {
    return null;
  }
}

public @ CheckForNull VersionNumber version ( ) throws IOException , InterruptedException { LaunchResult result = launch ( new EnvVars ( ) , true , "-v" ) ; if ( result . getStatus ( ) == 0 ) { return parseVersionNumber ( result . getOut ( ) ) ; } else { return null ; } }
get the docker version .
