Skip to content

Commit fa6d7e7

Browse files
committed
Add "Pid" field to InspectExecResponse
| GET /exec/(id)/json now returns Pid, which is the system pid for the | exec’d process. https://docs.docker.com/engine/api/version-history/#v125-api-changes
1 parent 6f497c9 commit fa6d7e7

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/main/java/com/github/dockerjava/api/command/InspectExecResponse.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@ public class InspectExecResponse {
5959
@JsonProperty("DetachKeys")
6060
private String detachKeys;
6161

62+
/**
63+
* @since {@link RemoteApiVersion#VERSION_1_25}
64+
*/
65+
@JsonProperty("Pid")
66+
private Integer pid;
67+
6268
public String getId() {
6369
return id;
6470
}
@@ -119,6 +125,14 @@ public String getDetachKeys() {
119125
return detachKeys;
120126
}
121127

128+
/**
129+
* @see #pid
130+
*/
131+
@CheckForNull
132+
public Integer getPid() {
133+
return pid;
134+
}
135+
122136
@Override
123137
public String toString() {
124138
return ToStringBuilder.reflectionToString(this);

0 commit comments

Comments
 (0)