From 8c23e157a7d61d7d4bb2caa952c1e6cbb8578a1b Mon Sep 17 00:00:00 2001 From: Guohan Lu Date: Tue, 31 Jan 2017 05:48:40 +0000 Subject: [PATCH] make tty as an option in docker run --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 5c93afad6a91..b819d41cfb67 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,7 @@ MAKEFLAGS += -B DOCKER_RUN := docker run --rm=true --privileged \ -v $(PWD):/sonic \ - -it sonic-slave-$(USER) + -i$(SONIC_SLAVE_TTY) DOCKER_BUILD = docker build --no-cache \ --build-arg user=$(USER) \ @@ -26,7 +26,7 @@ DOCKER_BUILD = docker build --no-cache \ %:: @docker inspect --type image sonic-slave-$(USER) &> /dev/null || $(DOCKER_BUILD) - @$(DOCKER_RUN) make \ + @$(DOCKER_RUN) sonic-slave-$(USER) make \ -C sonic \ -f slave.mk \ PLATFORM=$(PLATFORM) \ @@ -37,4 +37,4 @@ sonic-slave-build : @$(DOCKER_BUILD) sonic-slave-bash : - @$(DOCKER_RUN) bash + @$(DOCKER_RUN) -t sonic-slave-$(USER) bash