Skip to content

Commit

Permalink
Make docker run -i -t optional via EXTRA_ARGS (NVIDIA#595)
Browse files Browse the repository at this point in the history
Allow using run-in-docker when forked by a process without a tty

Signed-off-by: Gera Shegalov <[email protected]>
  • Loading branch information
gerashegalov authored Oct 3, 2022
1 parent b289897 commit bba5293
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/run-in-docker
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ else
DOCKER_ARGS="$*"
fi

$DOCKER_CMD run $DOCKER_GPU_OPTS $DOCKER_RUN_EXTRA_ARGS -it -u $(id -u):$(id -g) --rm \
$DOCKER_CMD run $DOCKER_GPU_OPTS $DOCKER_RUN_EXTRA_ARGS -u $(id -u):$(id -g) --rm \
-v "/etc/group:/etc/group:ro" \
-v "/etc/passwd:/etc/passwd:ro" \
-v "/etc/shadow:/etc/shadow:ro" \
Expand Down

0 comments on commit bba5293

Please sign in to comment.