Skip to content

Commit 962f9b4

Browse files
committed
Merge pull request #35 from woq-blended/master
Exposing the withTTY method for container creation.
2 parents f7896a4 + 3e0808e commit 962f9b4

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

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

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
package com.github.dockerjava.client.command;
22

3-
import javax.ws.rs.core.MediaType;
4-
import javax.ws.rs.core.MultivaluedMap;
5-
6-
import org.slf4j.Logger;
7-
import org.slf4j.LoggerFactory;
8-
93
import com.github.dockerjava.client.DockerException;
104
import com.github.dockerjava.client.NotFoundException;
115
import com.github.dockerjava.client.model.ContainerCreateResponse;
@@ -16,6 +10,11 @@
1610
import com.sun.jersey.api.client.UniformInterfaceException;
1711
import com.sun.jersey.api.client.WebResource;
1812
import com.sun.jersey.core.util.MultivaluedMapImpl;
13+
import org.slf4j.Logger;
14+
import org.slf4j.LoggerFactory;
15+
16+
import javax.ws.rs.core.MediaType;
17+
import javax.ws.rs.core.MultivaluedMap;
1918

2019

2120
/**
@@ -68,6 +67,11 @@ public CreateContainerCmd withVolumesFrom(String... volumesFrom) {
6867
this.containerCreateConfig.withVolumesFrom(volumesFrom);
6968
return this;
7069
}
70+
71+
public CreateContainerCmd withTTY(boolean tty) {
72+
this.containerCreateConfig.withTty(tty);
73+
return this;
74+
}
7175

7276
public CreateContainerCmd withEnv(String... env) {
7377
Preconditions.checkNotNull(env, "env was not specified");

0 commit comments

Comments
 (0)