docker / for-win

Bug reports for Docker Desktop for Windows
https://www.docker.com/products/docker#/windows
1.85k stars 285 forks source link

No log output of the running container shows in the Docker Desktop when F5ing a .NET Framework Console C# project #14263

Open v-mengwe opened 4 weeks ago

v-mengwe commented 4 weeks ago

Description

No log output of the running container shows in the Docker Desktop. image

Reproduce

  1. Create a new .NET Framework Console C# project -> Add -> Container Orchestrator Support.
  2. Add Console.WriteLine("Hello World!"); to Program.cs.
  3. F5.
  4. Check whether the log output of the running container shows in the Docker Desktop.

Expected behavior

The log output of the running container shows in the Docker Desktop.

docker version

Client:
 Version:           27.1.1
 API version:       1.46
 Go version:        go1.21.12
 Git commit:        6312585
 Built:             Tue Jul 23 19:57:57 2024
 OS/Arch:           windows/amd64
 Context:           desktop-windows

Server: Docker Desktop 4.33.1 (161083)
 Engine:
  Version:          27.1.1
  API version:      1.46 (minimum version 1.24)
  Go version:       go1.21.12
  Git commit:       cc13f95
  Built:            Tue Jul 23 19:56:46 2024
  OS/Arch:          windows/amd64
  Experimental:     false

docker info

n/a

Diagnostics ID

Null

Additional Info

  1. This issue doesn't reproduce for Console C#/VB project.
  2. This issue also reproduces for .NET Framework Console VB project.
  3. This issue also reproduces on Docker Desktop 4.28.0.
dbreshears commented 4 weeks ago

This should probably go over to https://github.com/microsoft/DockerTools/issues. I don't believe this a regression but we can investigate with our debugger team.