본문 바로가기
Engineering/도커(Docker)

[Docker] the input device is not a TTY. If you are using mintty, try prefixing the command with 'winpty'

by Hyen4110 2022. 12. 15.
반응형

Git-Bash에서 docker run을 했을 때, 아래 메세지가 발생하였다.

the input device is not a TTY.  If you are using mintty, try prefixing the command with 'winpty'

구글링을 해보니

(https://stackoverflow.com/questions/48623005/docker-error-on-windows-the-input-device-is-not-a-tty-if-you-are-using-mintty)

Git-Bash에서는 디폴트로 설치되는 'winpty'로 실행을 해야 docker 작업을 할수 있다.
실제로, 명령어 앞에 winpty를 넣어서 하니 정상적으로 작동한다.

하지만 일일히 winpty를 입력하는 것이 싫다면
winpty 없이 할 수있도록 아래처럼 실행할 수 있다고 한다.
Git-Bash를 안쓸것이므로 하지않음

winpty docker run --rm -v "/c/users/vipul rao/documents/github/wappalyzer:/opt/wappalyzer" -it wappalyzer/dev

 

 

echo "alias docker='winpty docker'" >> ~/.bash_profile
반응형

댓글