Merge pull request #277 into master

fcb5b1fa client: lib_docker: up: only allocate pseudo-TTY when needed (Aaron Fiore)
This commit was merged in pull request #277.
This commit is contained in:
2026-01-28 11:14:22 -08:00

View File

@@ -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()