Skip to content

Restarting containers using docker file fails #6392

@davidfowl

Description

@davidfowl
var builder = DistributedApplication.CreateBuilder(args);

var db = builder.AddMongoDB("mongo")
                .AddDatabase("db");

builder.AddDockerfile("api", "node")
       .WithHttpEndpoint(targetPort: 3000, env: "PORT")
       .WithReference(db);

builder.Build().Run();

Here's what happens:
https://github.com/user-attachments/assets/04c3b6c9-78b0-4f38-a701-26eea0f39df4

Here's the console output:
Image

Additional information: Stop and Start seem to work.

Metadata

Metadata

Assignees

Labels

area-app-modelIssues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions