diff --git a/Makefile b/Makefile index 5cf5f53ac3ce..33f2df19e520 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,7 @@ SLAVE_IMAGE = sonic-slave-$(USER) DOCKER_RUN := docker run --rm=true --privileged \ -v $(PWD):/sonic \ - -i$(SONIC_SLAVE_TTY) + -i$(if $(TERM),t,) DOCKER_BUILD = docker build --no-cache \ --build-arg user=$(USER) \