We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4e80442 + 7852420 commit 98d8a3aCopy full SHA for 98d8a3a
1 file changed
src/main/java/com/github/dockerjava/client/command/CreateContainerCmd.java
@@ -61,7 +61,18 @@ public CreateContainerCmd withVolumes(Volume... volumes) {
61
this.containerCreateConfig.withVolumes(volumes);
62
return this;
63
}
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
75
76
77
public CreateContainerCmd withName(String name) {
78
Preconditions.checkNotNull(name, "name was not specified");
0 commit comments