mirror of
https://github.com/docker/compose.git
synced 2025-07-22 13:14:29 +02:00
Merge pull request #6104 from glorpen/fix-pipes
Fixes pipe handling in container mode.
This commit is contained in:
commit
6e95eb7437
@ -47,10 +47,11 @@ if [ -n "$HOME" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Only allocate tty if we detect one
|
# Only allocate tty if we detect one
|
||||||
if [ -t 1 ]; then
|
|
||||||
DOCKER_RUN_OPTIONS="-t"
|
|
||||||
fi
|
|
||||||
if [ -t 0 ]; then
|
if [ -t 0 ]; then
|
||||||
|
if [ -t 1 ]; then
|
||||||
|
DOCKER_RUN_OPTIONS="$DOCKER_RUN_OPTIONS -t"
|
||||||
|
fi
|
||||||
|
else
|
||||||
DOCKER_RUN_OPTIONS="$DOCKER_RUN_OPTIONS -i"
|
DOCKER_RUN_OPTIONS="$DOCKER_RUN_OPTIONS -i"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user