dotnet / aspire

Tools, templates, and packages to accelerate building observable, production-ready apps
https://learn.microsoft.com/dotnet/aspire
MIT License
3.96k stars 487 forks source link

[AzureTools][Aspire] The change in state of the containers in the dashboard is inconsistent after deleting the container in Podman Desktop or Docker Desktop #5979

Open v-mengwe opened 2 months ago

v-mengwe commented 2 months ago

Clean machine: Win11 x64 23H2 ENU VS Version: VS 17.12.0 Preview 3.0 [35326.43.main] Aspire Version: 9.0.0-preview.4.24475.6 Apply NuGet Feeds Podman Desktop: 1.12.0 Podman CLI: 5.2.3 Docker Desktop: 4.34.2

REPRO STEPS:

  1. Create an Aspire starter project with "Use Redis for caching (requires Docker)" checked.
  2. F5/execute dotnet run in the AppHost project path and open the dashboard.
  3. Delete the running container in Podman Desktop or Docker Desktop.
  4. Check whether the change in state of the containers in the dashboard is consistent.

Expect: The change in state of the containers in the dashboard is consistent.

Actual: The change in state of the containers in the dashboard is inconsistent.

  1. Delete the running container in Podman Desktop: The state of the container in the Dashboard changes to "Unknown". image
  2. Delete the running container in Docker Desktop: The state of the container in the Dashboard changes to "Exited". image
v-mengwe commented 2 days ago

Delete the running container from CTW window: The state of the container in the Dashboard also changes to "Unknown".Image