Skip to content

Commit 6f497c9

Browse files
authored
Merge pull request #1052 from silvestre/master
Add DiskQuota to HostConfig and CreateContainerCmd
2 parents 0f4647d + 3b4867e commit 6f497c9

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/main/java/com/github/dockerjava/api/model/HostConfig.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,12 @@ public class HostConfig implements Serializable {
9999
@JsonProperty("Devices")
100100
private Device[] devices;
101101

102+
/**
103+
* @since {@link RemoteApiVersion#VERSION_1_25}
104+
*/
105+
@JsonProperty("DiskQuota")
106+
private Long diskQuota;
107+
102108
@JsonProperty("Dns")
103109
private String[] dns;
104110

@@ -260,6 +266,10 @@ public Device[] getDevices() {
260266
return devices;
261267
}
262268

269+
public Long getDiskQuota() {
270+
return diskQuota;
271+
}
272+
263273
public String[] getDns() {
264274
return dns;
265275
}
@@ -622,6 +632,14 @@ public HostConfig withDevices(Device[] devices) {
622632
return this;
623633
}
624634

635+
/**
636+
* @see #diskQuota
637+
*/
638+
public HostConfig withDiskQuota(Long diskQuota) {
639+
this.diskQuota = diskQuota;
640+
return this;
641+
}
642+
625643
/**
626644
* @see #dns
627645
*/

0 commit comments

Comments
 (0)