Improve the experience when docker isn't running#6135
Conversation
- When the container runtime isn't running, log a critical error but continue running and sending requests to dcp. DCP will wait for the container runtime to be healthy (started) and will run the containers.
|
When you launch the app host, this is what it says:
This is what the dashboard looks like when the container runtime isn't running.
@danegsta I think dcp should set the state of these containers to something that reflects that. I can do it in the apphost but it feels like the source of truth for what the container state is should be dcp. We could use a new state "Error" or "Container runtime unhealthy" etc. We show logs in each of the containers that show the error message from DCP:
Here's what it looks like when you run docker: start-docker-2.mp4 |
|
First thought is that we could add something like MissingRequirement as the new state and a status property for the specific related error to make it easier to surface in the Dashboard. |
I think we should do something like that. But we should make it specific to the actual state instead of a generic |
|
Spoke to @davidfowl behind the scenes on a bit more of the intent here. We don't want DCP to set a terminal state because we want folks to be able to start their Docker instance behind the scenes and have it suddenly come to life without having to restart the apphost. Given this I'm happy with this PR. |
|
This is what I see in the UI: And resources page: And this is in the console logs: Overall I like it. Suggestions for improvement:
|
- Share code that logs errors about the container runtime. - Improve the error message for docker and podman.
|
I moved the code to a shared location, and I improved the error message as much as I could (using chatgpt 😄 ) |
|
yessssss 🔥 |
|
/backport to release/9.0-rc1 |
|
Started backporting to release/9.0-rc1: https://github.com/dotnet/aspire/actions/runs/11222760501 |






Description
Fixes #5533
Checklist
<remarks />and<code />elements on your triple slash comments?Microsoft Reviewers: Open in CodeFlow