-
Notifications
You must be signed in to change notification settings - Fork 816
Description
Is there an existing issue for this?
- I have searched the existing issues
Describe the bug
Container runtime: Podman 5.3.0
Debug the AppHost several times, then use podman ps to list containers - there is only one. This is expected and desired behavior.
Create an Aspire test project and uncomment the sample test. Run the test several times, then use podman ps to list containers. There is one container per test run, all in "up" state. For example, if I run the test 10 times, there will be 10 containers created and all in "up" state.
Expected Behavior
Only one persistent container created for any number of test runs.
Steps To Reproduce
builder.AddSqlServer("MySqlServer").WithLifetime(ContainerLifetime.Persistent).AddDatabase("MyDatabase");Create an Aspire test project and uncomment the sample test. Run the test several times, then use podman ps to list containers.
Exceptions (if any)
No response
.NET Version info
.NET SDK:
Version: 9.0.101
Commit: eedb237549
Workload version: 9.0.100-manifests.4a280210
MSBuild version: 17.12.12+1cce77968
Runtime Environment:
OS Name: Windows
OS Version: 10.0.22631
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\9.0.101\
Project target framework: NET 8.0
Aspire version: 9.0
Anything else?
No response