Error Handling

docker error 해결법 : the input device is not a TTY. If you are using mintty, try prefixing the command with 'winpty'

고수트 2021. 1. 28. 00:02
반응형

Git bash 에서 docker 내부에 접속하기 위해 명령어를 입력 할 경우 아래와 같은 에러가 나는 경우가 있다.

$ docker exec -it mysql bash

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

 

위 에러는 git 설치시 터미널 설정을 mintty 로 한 경우 발생한다.

따라서 powershell을 이용하거나 Git 재설치를 할 때에 콘솔 설정을 Window 로 해주면 된다.

또는 Git Bash 를 현재 상태로 계속 사용하고 싶다면 아래와 같이 앞에 winpty를 적어주면 된다.

winpty docker exec -it mysql bash

 

반응형