Open karolz-ms opened 2 weeks ago
I am seeing this issue when developing using Aspire in normal usage - see screenshot below. These networks need cleaning up manually.
Update: On further testing, it appears Aspire never clears up any networks it creates.
My platform details:
Reopening as there seem to still be some scenarios where this can be reproduced, particularly when using dotnet watch
.
The fixes included in #6560 addressed DCP internal problems.
The current version of dotnet watch
kills entire process tree, including DCP, which thus does not have a chance to do the cleanup. This is a known issue that @tmat is fixing as part of the major dotnet watch
renewal.
We also have the problem of DCP instances lingering during test run, which is mostly the Aspire test application builder issue, but also constrained by lack of ability to "tell" DCP to shut down before the process that launched DCP is terminated. This is tracked by https://github.com/dotnet/aspire/issues/6561
Once new `dotnet watch arrives and https://github.com/dotnet/aspire/issues/6561 is resolved, I do not expect any additional work to resolve the scenario described in this issue.
Is there an existing issue for this?
Describe the bug
(see title)
Expected Behavior
DCP should shut down and leave machine in clean state, including cleaning up the ephemeral Docker network.
Steps To Reproduce
dotnet/aspire-samples
repositoryExceptions (if any)
No response
.NET Version info
9.0 RC
Anything else?
No response