From cef07c93587b186f68c42b8748a4db81c81ec7dc Mon Sep 17 00:00:00 2001 From: Luca Ceresoli Date: Mon, 14 Feb 2022 17:24:13 +0100 Subject: [PATCH] utils/docker-run: allow interactive use Without -i, the container cannot be used interactively. Allow using it as in: $ ./utils/docker-run + exec docker run -v /home/ceresoli/devel/buildroot:/home/br-user -it registry.gitlab.com/buildroot.org/buildroot/base:20220206.1756 br-user@1e9508a4ccbb:~$ ls arch board boot CHANGES Config.in Config.in.legacy configs COPYING DEVELOPERS docs fs linux Makefile Makefile.legacy output package README support system toolchain utils br-user@1e9508a4ccbb:~$ Signed-off-by: Luca Ceresoli Signed-off-by: Yann E. MORIN --- utils/docker-run | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/docker-run b/utils/docker-run index 35153199a1..2bca8d8e3a 100755 --- a/utils/docker-run +++ b/utils/docker-run @@ -7,4 +7,4 @@ IMAGE=$(grep ^image: "${MAIN_DIR}/.gitlab-ci.yml" | \ sed -e 's,^image: ,,g' | sed -e 's,\$CI_REGISTRY,registry.gitlab.com,g') set -x -exec docker run -v "${MAIN_DIR}:/home/br-user" -t "${IMAGE}" "$@" +exec docker run -v "${MAIN_DIR}:/home/br-user" -it "${IMAGE}" "$@"