Maximus5 / cygwin-connector

https://conemu.github.io/ terminal connector for cygwin/msys
https://conemu.github.io/en/CygwinMsysConnector.html
Other
82 stars 5 forks source link

Cant run into docker interactive tty #26

Closed regisxu closed 6 years ago

regisxu commented 6 years ago

Run docker run -it alpine sh show error message:

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

it works well without cygwin-connector

Maximus5 commented 6 years ago

Why do you post here the Docker issue?

regisxu commented 6 years ago

I run this command ins ConEmu, following this the task commands, which use conemu-msys2:

set CHERE_INVOKING=1 & set "PATH=%ConEmuDir%\..\msys64\usr\bin;%PATH%" & %ConEmuBaseDirShort%\conemu-msys2-64.exe -new_console:p:h0 %ConEmuDir%\..\msys64\usr\bin\bash.exe --login -i -new_console:C:"%ConEmuDir%\..\msys64\msys2.ico"

And if I start task without conemu-msys2, docker command works, so I think maybe there is something in conemu-msys2.

Maximus5 commented 6 years ago

The Docker explicitly states that

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

It is not absolutely correct message, but you may understand that you can't run Docker in mintty (which is POSIX TTY). Connector is POSIX TTY too. Conclusion: don't run Docker from connector because it requires conhost API.

So, this is not a ConEmu or connector issue.