Open
Description
Is there an existing issue for this?
- I have searched the existing issues
Describe the bug
I followed #7215 and applied the fix when it was released. Everything seemed better.
Now using dotnet 9 + aspire 9.3, the problem appears to be back.
I had zero problems on a project with just sql server, but once I added redis, I'm getting "failed to create network" at least once a day.
The ironic part is i'm not even using redis yet past setting it up in Program.cs.
fail: Aspire.Hosting.Dcp.dcpctrl.NetworkReconciler[0]
could not create a network {"NetworkName": {"name":"default-aspire-network"}, "Reconciliation": 2, "Network": "default-aspire-network-1b9lq4ehg4", "error": "object not found\nnetwork not found\ndocker command 'CreateNetwork' returned with non-zero exit code 1: command output: Stdout: '' Stderr: 'Error response from daemon: all predefined address pools have been fully subnetted\n'"}
Expected Behavior
Restarting AppHost should not exhaust docker networks.
Steps To Reproduce
app host:
<PackageReference Include="Aspire.Hosting.Redis" Version="9.3.0" />
var redis = builder.AddRedis("redis")
.WithImageTag("8.0.2")
.WithRedisInsight()
.WithDataVolume("redis-data")
.WithPersistence(TimeSpan.FromSeconds(1));
web:
<PackageReference Include="Aspire.StackExchange.Redis" Version="9.3.0" />
builder.AddRedisClient(connectionName: "redis");
Exceptions (if any)
No response
.NET Version info
No response
Anything else?
No response