Skip to content

Commit 8460bb2

Browse files
committed
Oops, allocate a terminal for --solo shell
1 parent 03448f4 commit 8460bb2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rootfs/templates/wrapper-body.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,7 @@ function use() {
588588
)
589589

590590
if [ "$ONE_SHELL" = "true" ]; then
591+
[ -t 0 ] && DOCKER_EXEC_ARGS+=(-it)
591592
DOCKER_NAME="${DOCKER_NAME}-$(date +%d%H%M%S)"
592593
echo "# Starting single shell ${DOCKER_NAME} session from ${DOCKER_IMAGE}"
593594
echo "# Exposing port ${GEODESIC_PORT}"

0 commit comments

Comments
 (0)