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 @@ -63,6 +63,9 @@ public class InspectContainerResponse extends DockerObject {
@JsonProperty("SizeRootFs")
private Integer sizeRootFs;

@JsonProperty("SizeRw")
private Integer sizeRw;

@JsonProperty("Image")
private String imageId;

Expand Down Expand Up @@ -125,6 +128,10 @@ public Integer getSizeRootFs() {
return sizeRootFs;
}

public Integer getSizeRw() {
return sizeRw;
}

public String getCreated() {
return created;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ public void inspectContainerWithSize() throws DockerException {
if (isNotSwarm(dockerRule.getClient())) {
assertNotNull(containerInfo.getSizeRootFs());
assertTrue(containerInfo.getSizeRootFs().intValue() > 0);
assertNotNull(containerInfo.getSizeRw());
assertTrue(containerInfo.getSizeRw().intValue() == 0);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"postgres"
],
"SizeRootFs" : null,
"SizeRw" : null,
"HostConfig" : {
"KernelMemory" : 0,
"MemorySwappiness" : -1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"Created": 1455662451,
"Ports": [],
"SizeRootFs": 1113554,
"SizeRw": 0,
"Labels": {},
"Status": "Up Less than a second",
"HostConfig": {
Expand Down