-
Notifications
You must be signed in to change notification settings - Fork 496
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MSYS2 programs do not output to console inside interactive TTY Windows Docker container #1490
Comments
Any progress with this defect? |
I do not face this issue on Windows Server 2019 1809 with Docker 19.03:
But I reproduce this issue with Windows Server 2016 1607 and Docker 17.06:
I have to use different docker images for these tests because different versions of Windows require different version of base docker image (mcr.microsoft.com/windows/servercore:ltsc2019 vs microsoft/windowsservercore:ltsc2016) IMHO, this issue is related to Windows Containers, i.e. is fixed in Windows Server 2019 but won't be fixed in Windows Server 2016, because it doesn't look like MS cares about Windows Containers for Windows Server 2016. Taking into account the fact that on Windows Server 2016 application inside container is just killed when container stops (docker stop), I do not see possibility to use Windows Containers (docker) on Windows Server 2016. This issue is fixed in Windows Server 2019. If I'm correct with my findings (if smbd could confirm the same), then I vote for closing this issue as issue not related to MSYS2, but related to Windows Containers in Windows Server 2016. |
@mabrarov I had a break-through. It seems like it's broken if I use mcr.microsoft.com/dotnet/framework/sdk:latest as a base image. This image has the .net framework 4.8 and build tools 2019 installed. It would seem like the most appropriate image to use for CI for windows applications. |
In case it helps someone debug this: I have this same behavior (no console output) when my dotnet app is run from MSYS's zsh. Running the app from bash works fine. |
@fralalonde it happens to me too with normal bash and zsh when using windows terminal If I use the Mintty terminal that comes with the msys2 isntaller the output works For reference, this is how I start msys2 from windows terminal {
"commandline": "C:/msys64/msys2_shell.cmd -defterm -no-start -mingw64",
"guid": "{17da3cac-b318-431e-8a3e-7fcdefe6d115}",
"name": "bash",
"startingDirectory": "%USERPROFILE%"
}, |
Heya,
I'm trying to setup MSYS2 inside a Windows Docker container, and it looks like there might be a problem between interactive TTY docker sessions and MSYS program output. The original issue I found for this problem is docker/for-win#262.
You can reproduce this by following these steps:
C:\msys64
.cmd.exe
and runcd C:\
to go into the root-i
flag) container works (it prints the command as well but that's not related to MSYS2):-it
flag) container shows no output. If I pipe the output to a file I can see it though.In docker/for-win#262 (comment) it was mentioned that this behaviour might be related to how MSYS2 uses stdio pipes, but I don't know if this is accurate.
I hope this is somehow fixable between MSYS2 and Docker, and thanks for the good work in MSYS2!
The text was updated successfully, but these errors were encountered: