Skip to content

Commit 98d8a3a

Browse files
author
Marcus Linke
committed
Merge branch 'NirmataOSS-master'
2 parents 4e80442 + 7852420 commit 98d8a3a

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

src/main/java/com/github/dockerjava/client/command/CreateContainerCmd.java

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,18 @@ public CreateContainerCmd withVolumes(Volume... volumes) {
6161
this.containerCreateConfig.withVolumes(volumes);
6262
return this;
6363
}
64-
64+
65+
public CreateContainerCmd withEnv(String... env) {
66+
Preconditions.checkNotNull(env, "env was not specified");
67+
this.containerCreateConfig.withEnv(env);
68+
return this;
69+
}
70+
71+
public CreateContainerCmd withHostName(String hostName) {
72+
Preconditions.checkNotNull(hostName, "hostName was not specified");
73+
this.containerCreateConfig.withHostName(hostName);
74+
return this;
75+
}
6576

6677
public CreateContainerCmd withName(String name) {
6778
Preconditions.checkNotNull(name, "name was not specified");

0 commit comments

Comments
 (0)