disable interactive mode when container is detached

This commit is contained in:
Salvatore Ferrucci committed 2019-10-21 13:48:21 +02:00
1 parent 750a31013f
commit 48ee225dbe
1 file changed
+2 -1
+2 -1
View File
@@ -80,8 +80,9 @@ scheduler-docker-local-scheduler-run() {
declare -a DOCKER_START_ARGS_ARRAY declare -a DOCKER_START_ARGS_ARRAY
if [[ "$DOKKU_DETACH_CONTAINER" != "1" ]]; then if [[ "$DOKKU_DETACH_CONTAINER" != "1" ]]; then
DOCKER_START_ARGS_ARRAY+=("--attach") DOCKER_START_ARGS_ARRAY+=("--attach")
has_tty && DOCKER_START_ARGS_ARRAY+=" --interactive"
fi fi
has_tty && DOCKER_START_ARGS_ARRAY+=" --interactive"
local EARLY_EXIT_CODE=0 EXIT_CODE=0 local EARLY_EXIT_CODE=0 EXIT_CODE=0
if [[ "$DOKKU_DETACH_CONTAINER" == "1" ]]; then if [[ "$DOKKU_DETACH_CONTAINER" == "1" ]]; then