Docker Community Forums

Share and learn in the Docker community.

Docker logs being flushed by Console application running in a container

I have a C# console application running in Windows 2016 container ( CMD [….] ) which calls Console.WriteLine(……) to log information regarding application status.

This ends up in the container logs as expected, but when I call Console.Clear() to flush the buffer, the container logs are flushed as well.

Is there a fix to this?