8000 Implemented the `SizeRw` field in the `InspectContainerResponse` clas… · docker-java/docker-java@fea93ec · GitHub
[go: up one dir, main page]

Skip to content

Commit fea93ec

Browse files
Implemented the SizeRw field in the InspectContainerResponse class. (#2216)
Co-authored-by: Eddú Meléndez Gonzales <eddu.melendez@gmail.com>
1 parent d138d51 commit fea93ec

File tree

4 files changed

+11
-0
lines changed

4 files changed

+11
-0
lines changed

docker-java-api/src/main/java/com/github/dockerjava/api/command/InspectContainerResponse.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ public class InspectContainerResponse extends DockerObject {
6363
@JsonProperty("SizeRootFs")
6464
private Integer sizeRootFs;
6565

66+
@JsonProperty("SizeRw")
67+
private Integer sizeRw;
68+
6669
@JsonProperty("Image")
6770
private String imageId;
6871

@@ -125,6 +128,10 @@ public Integer getSizeRootFs() {
125128
return sizeRootFs;
126129
}
127130

131+
public Integer getSizeRw() {
132+
return sizeRw;
133+
}
134+
128135
public String getCreated() {
129136
return created;
130137
}

docker-java/src/test/java/com/github/dockerjava/cmd/InspectContainerCmdIT.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ public void inspectContainerWithSize() throws DockerException {
101101
if (isNotSwarm(dockerRule.getClient())) {
102102
assertNotNull(containerInfo.getSizeRootFs());
103103
assertTrue(containerInfo.getSizeRootFs().intValue() > 0);
104+
assertNotNull(containerInfo.getSizeRw());
105+
assertTrue(containerInfo.getSizeRw().intValue() == 0);
104106
}
105107
}
106108

docker-java/src/test/resources/com/github/dockerjava/api/command/inspectContainerResponse_full_1_26a.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"postgres"
77
],
88
"SizeRootFs" : null,
9+
"SizeRw" : null,
910
"HostConfig" : {
1011
"KernelMemory" : 0,
1112
"MemorySwappiness" : -1,

docker-java/src/test/resources/samples/1.22/containers/json/filter1.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"Created": 1455662451,
1111
"Ports": [],
1212
"SizeRootFs": 1113554,
13+
"SizeRw": 0,
1314
"Labels": {},
1415
"Status": "Up Less than a second",
1516
"HostConfig": {

0 commit comments

Comments
 (0)
0