LANGUAGE/!$%!% ERROR NOTE 2017. 11. 20. 22:31

!markdown


# Docker (도커)




### Error (에러)


```log

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

```




### Problem (문제)


Windows의 Gitbash를 MinTTY로 사용할 때는 지원을 안 하나 보다..




### Solved (해결)


앞에 `winpty`를 붙이면 된다.


```bash

winpty docker run -it ubuntu bash

```


만약 winpty를 붙이는 것이 귀찮으면 `Gitbash를 다시 설치` 해야한다. 



- 설치중에 다음 옵션중에서 `두번째 옵션`으로 말이다.


```

- Use MinTTY (the default terminal of MSYS2)

- Use Windows' default console window

```





### Reference (참고)


- Docker for Windows: Interactive Sessions in MinTTY Git Bash: [http://willi.am/blog/2016/08/08/docker-for-windows-interactive-sessions-in-mintty-git-bash/](http://willi.am/blog/2016/08/08/docker-for-windows-interactive-sessions-in-mintty-git-bash/)