Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,9 @@ public class Info extends DockerObject implements Serializable {
@JsonProperty("SecurityOptions")
private List<String> securityOptions;

@JsonProperty("Runtimes")
private Map<String, RuntimeInfo> runtimes;

/**
* @see #architecture
*/
Expand Down Expand Up @@ -1070,4 +1073,11 @@ public Info withIsolation(String isolation) {
public List<String> getSecurityOptions() {
return securityOptions;
}

/**
* @see #runtimes
*/
public Map<String, RuntimeInfo> getRuntimes() {
return runtimes;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package com.github.dockerjava.api.model;

import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.io.Serializable;

@EqualsAndHashCode
@ToString
public class RuntimeInfo extends DockerObject implements Serializable {
private static final long serialVersionUID = 1L;

private String path;

public String getPath() {
return path;
}

public void setPath(String path) {
this.path = path;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ public void infoTest() throws DockerException {
assertThat(dockerInfo.getImages(), notNullValue());
assertThat(dockerInfo.getImages(), greaterThan(0));
assertThat(dockerInfo.getDebug(), notNullValue());
assertThat(dockerInfo.getRuntimes(), notNullValue());

if (isNotSwarm(dockerClient)) {
assertThat(dockerInfo.getNFd(), greaterThan(0));
Expand Down