From fcb5b1fa92b3d91b5c13e6589d57670a9e85955d Mon Sep 17 00:00:00 2001 From: Aaron Fiore Date: Wed, 21 Jan 2026 14:25:33 -0800 Subject: [PATCH] client: lib_docker: up: only allocate pseudo-TTY when needed --- client/src/docker/lib/internal/lib_docker.bash | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/client/src/docker/lib/internal/lib_docker.bash b/client/src/docker/lib/internal/lib_docker.bash index f0c786c..bc4bc13 100644 --- a/client/src/docker/lib/internal/lib_docker.bash +++ b/client/src/docker/lib/internal/lib_docker.bash @@ -359,10 +359,14 @@ function lib_docker::__up() # } # ] # } - lib_utils::print_debug "Bringing up network and container" + lib_utils::print_debug "Creating network" docker network create "$global_network" 2>/dev/null + + lib_utils::print_debug "Bringing up container" + local _tty + test -t 1 && _tty="t" lib_docker::__docker_compose up -d docker-finance "$@" \ - && docker exec -it "$global_container" /bin/bash + && docker exec -i"${_tty}" "$global_container" /bin/bash } function lib_docker::__down()