8000 Implemented the `SizeRw` field in the `InspectContainerResponse` class. by LarsSven · Pull Request #2216 · docker-java/docker-java · GitHub
[go: up one dir, main page]

Skip to content

Implemented the SizeRw field in the InspectContainerResponse class. #2216

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Oct 26, 2023
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
0