Skip to content

aspire publish with AddDockerComposeEnvironment should give clear error when docker isn't running #9332

Closed
@eerhardt

Description

@eerhardt

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

When I have builder.AddDockerComposeEnvironment("env"); in my app, and I run aspire publish and I don't have Docker/Docker Desktop running, the error experience is poor. It takes parsing a bunch of log output to figure out the error.

Image

Expected Behavior

There should be a clear error of what I was doing wrong. Preferrably in red text.

Steps To Reproduce

Don't have Docker running
Call builder.AddDockerComposeEnvironment("env"); in your app.
aspire publish

Exceptions (if any)

No response

.NET Version info

No response

Anything else?

No response

Metadata

Metadata

Assignees

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions