We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3d84b5b + 9aa7c50 commit c76d2ddCopy full SHA for c76d2dd
src/main/java/com/kpelykh/docker/client/DockerClient.java
@@ -190,6 +190,19 @@ public Version version() throws DockerException {
190
}
191
192
193
+
194
195
+ public int ping() throws DockerException {
196
+ WebResource webResource = client.resource(restEndpointUrl + "/_ping");
197
198
+ try {
199
+ LOGGER.trace("GET: {}", webResource);
200
+ ClientResponse resp = webResource.get(ClientResponse.class);
201
+ return resp.getStatus();
202
+ } catch (UniformInterfaceException exception) {
203
+ throw new DockerException(exception);
204
+ }
205
206
207
208
/**
0 commit comments