disable interactive mode when container is detached
This commit is contained in:
1 parent
750a31013f
commit
48ee225dbe
1 file changed
+2
-1
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user