forked from EvergreenCrypto/docker-finance
Merge pull request #277 into master
fcb5b1fa client: lib_docker: up: only allocate pseudo-TTY when needed (Aaron Fiore)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user