private static Version getDockerVersion ( String serverUrl ) { try { DockerClient client = DockerClientBuilder . getInstance ( serverUrl ) . build ( ) ; return client . versionCmd ( ) . exec ( ) ; } catch ( Exception e ) { return null ; } }
Returns the docker version .