IT/TroubleShooting
Docker Git-bash 에러 : the input device is not a TTY. If you are using mintty, try prefixing the command with 'winpty'
Millennials
2021. 9. 30. 12:44
$ docker container run -it --rm danielkraic/asciiquarium:latest
the input device is not a TTY. If you are using mintty, try prefixing the command with 'winpty'
Docker를 사용할때 Git-bash terminal 환경에서 실행시 위와 같은 에러가 날 수 있다.
이것은 Git을 설치할때 터미널 설정을 MinTTY로 설정했기 때문이다.
이를 해결하는 방법은 여러가지가 있다.
1. 앞에 winpty를 붙인다.
위의 코드의 경우 앞에 winpty를 붙인 아래의 코드로 시행시 정상 작동한다.
$ winpty docker container run -it --rm danielkraic/asciiquarium:latest
2. 다른 터미널에서 실행한다.
powershell이나, Docker Quickstart Terminal 등의 다른 터미널에서 실행한다.
3. git을 재설치한다.
깃 설치시 위 그림의 화면에서 아래를 선택한다. 사실 재설치하는 것보다 1번이나 2번을 시행하는 편이 더 경제적이다.
반응형