-
Notifications
You must be signed in to change notification settings - Fork 533
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
could not connect a container to the network #6639
Comments
I was having this issue initially. I was able to resolve them after I upgraded my project to .NET Aspire 9.0 (RC 1) - you can see the upgrade guide here |
@kylejuliandev this seems to fix the frequency of the errors, but the error still persists. |
We released .NET Aspire 9.0.0 earlier today, would you be able to update to that stable version and see if the issue persists? |
I updated my project to Aspire 9.0 and started encountering this issue as well. I am on Windows 11 using Docker Desktop. |
I was getting the same error on my desktop machine, but worked fine on my laptop. Both are running Win11 and Docker Desktop. I ended up reinstalling Docker Desktop on my desktop and that seemed to fix my issue. |
I had the same problem with Redis when following the learn-dotnet-aspire tutorial. I updated Docker Desktop and now it is working. Also, it might have been restarting WSL fixed the issue. |
I found that this problem happens if I manually kill the Aspire Developer Control Pane (DCP) while it's cleaning up. Specifically, when it does not clean up the Docker networks
|
@joperezr I updated to Aspire 9.0.0 and that seems to fix it for me Thanks |
I'm using Aspire 9.0 and I am still getting some leftovers
If you use powershell, you can use this script to kill all the networks:
|
You can use docker network prune |
Should be fixed (Aspire |
It will be nice to see this fixed. I am using podman on Ubuntu with Aspire and the issue still exists. |
You can try out daily builds https://github.com/dotnet/aspire/blob/main/docs/using-latest-daily.md and tell us if it fixes your problem |
I used the following versions and still get the same error:
Service defaults:
|
Did you clean up the existing networks? Though I'm still seeing this problem in some cases too on our CI. |
nope. i forgot to do that. since i have reverted back from daily feeds to the nuget.org one, I will give that a try when i get time. Right now i need to focus on my app development first. |
@tang2087 please double check what is the version of the If you are using the version |
I also pruned networks. I will try to publish a project somewhere to reproduce this. |
@karolz-ms I've created one here https://github.com/tang2087/aspire-example/tree/main
|
The dotnet watch issue is fixed in the next version. |
do you mean aspire 9.1 or .net 10 or next version of the .net sdk? |
The next version of the .NET SDK 9.0.200, see dotnet/sdk#36971 |
@tang2087 thank you for sharing the repro. Like @davidfowl said, |
ok, look forward to the release in Feb (hope the milestone target date is still up to date) |
Is there an existing issue for this?
Describe the bug
This issue occurs when I do
dotnet run
in the AppHost project, It does not affect the running of the applications however this error is repeated and is printed every second for all the containersHere is my csproj file
I'm on linux ubuntu, podman version
Expected Behavior
No response
Steps To Reproduce
No response
Exceptions (if any)
No response
.NET Version info
Anything else?
My Program.cs file
The text was updated successfully, but these errors were encountered: