Some container 101 here please. I can't see messages written to std::cout
in the console like i would expect, when it's run in a windows server core container. I've tried the same scenario with a C# console app and it outputs unlike the example below. I feel that narrows it down to something on the C++ side of things.
The code
#include <iostream>
int main()
{
std::cout << "Hello World\n";
}
The Dockerfile
FROM mcr.microsoft.com/windows/servercore:ltsc2019
ADD Debug/ /
ENTRYPOINT [ "cmd.exe" ]
The commands
docker build -t cppnet .
docker run -it cppnet
The results, first running in the container and second running locally