Skip to content

Commit d2b96e5

Browse files
committed
Add HostConfig.StorageOpt
API v1.24: "POST /containers/create now takes StorageOpt field."
1 parent 63b5065 commit d2b96e5

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

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

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,12 @@ public class HostConfig implements Serializable {
174174
@JsonProperty("RestartPolicy")
175175
private RestartPolicy restartPolicy;
176176

177+
/**
178+
* @since {@link RemoteApiVersion#VERSION_1_24}
179+
*/
180+
@JsonProperty("StorageOpt")
181+
private Map<String, String> storageOpt;
182+
177183
@JsonProperty("Ulimits")
178184
private Ulimit[] ulimits;
179185

@@ -845,6 +851,21 @@ public HostConfig withRestartPolicy(RestartPolicy restartPolicy) {
845851
return this;
846852
}
847853

854+
/**
855+
* @see #storageOpt
856+
*/
857+
public Map<String, String> getStorageOpt() {
858+
return storageOpt;
859+
}
860+
861+
/**
862+
* @see #storageOpt
863+
*/
864+
public HostConfig withStorageOpt(Map<String, String> storageOpt) {
865+
this.storageOpt = storageOpt;
866+
return this;
867+
}
868+
848869
/**
849870
* @see #securityOpts
850871
*/

0 commit comments

Comments
 (0)