Skip to content

Commit 25e8148

Browse files
authored
Enable tty on local docker containers (#1067)
1 parent 2c7c82f commit 25e8148

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cli/local/docker_spec.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ func deployPythonContainer(api *spec.API, awsClient *aws.Client) error {
137137

138138
containerConfig := &container.Config{
139139
Image: api.Predictor.Image,
140+
Tty: true,
140141
Env: append(
141142
getAPIEnv(api, awsClient),
142143
),
@@ -210,6 +211,7 @@ func deployONNXContainer(api *spec.API, awsClient *aws.Client) error {
210211

211212
containerConfig := &container.Config{
212213
Image: api.Predictor.Image,
214+
Tty: true,
213215
Env: append(
214216
getAPIEnv(api, awsClient),
215217
),
@@ -272,6 +274,7 @@ func deployTensorFlowContainers(api *spec.API, awsClient *aws.Client) error {
272274

273275
serveContainerConfig := &container.Config{
274276
Image: api.Predictor.TensorFlowServingImage,
277+
Tty: true,
275278
Cmd: strslice.StrSlice{
276279
"--port=" + _tfServingPortStr, "--model_base_path=" + _modelDir,
277280
},
@@ -334,6 +337,7 @@ func deployTensorFlowContainers(api *spec.API, awsClient *aws.Client) error {
334337

335338
apiContainerConfig := &container.Config{
336339
Image: api.Predictor.Image,
340+
Tty: true,
337341
Env: append(
338342
getAPIEnv(api, awsClient),
339343
"CORTEX_TF_SERVING_PORT="+_tfServingPortStr,

0 commit comments

Comments
 (0)