You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
aspire deploy requires docker to be running, but azd up doesn't #11408
Today we're doing the image push with docker outside of msbuild.
Correct.
I have mixed thoughts about taking advantage of the push functionality in dotnet publish to do this. I like the idea of modeling tag/push as distinct steps, instead of overloading the "build image" step with functionality that also does the remote push.
I think we should do this and have a way to opt into (via IConfiguration) using the container runtime to push images. I think it means breaking up into much smaller steps as well since today everything is happening in a single step.
unless there is a way to call dotnet publish twice (once to build and once to push).
I do have a PR that separates the logical steps involved so that everything is much more incremental (in the MSBuild sense). It should be very possible to enable separate explicit build commands for those steps based on those primitives if y'all really need that. That PR is kinda parked right now due to a bunch of 10 GA work, but if we need to put actual engineers on it to close it out for y'all we should talk to Marc Paine (@marcpopMSFT) about prioritization.
Ah, I see. I think this is unrelatd to this docker issue since it impacts other scenarios as well, like more granular deployments for compute environments as well.
For image builds, we can probably remove the parallelism from the ResourceContainerImageBuilder and update the implementation to emit pipeline steps itself instead of executing the logic.
I also realized we're a little inconsistent in our API shapes for that class. BuildImage takes multiple resources as arguments but not the other two (ref).
I do have a PR that separates the logical steps involved so that everything is much more incremental (in the MSBuild sense). It should be very possible to enable separate explicit build commands for those steps based on those primitives if y'all really need that.
It's not blocking at the moment especially since we rely on the container runtime API above to do the tag + push separate from build which I think works better with a more granular pipeline.
I have mixed thoughts about taking advantage of the push functionality in dotnet publish to do this. I like the idea of modeling tag/push as distinct steps, instead of overloading the "build image" step with functionality that also does the remote push.
This has been addressed/resolved in #13576. Closing as done. Thank you for filing! If you're still experiencing issues with the latest version, please open a new issue.
Reopening after reviewing the recent bulk closure. The close comment appears to cite work that does not fully address this issue, so this should remain open for normal triage.
Activity
davidfowl commentedon Sep 15, 2025
Today we're doing the image push with docker outside of msbuild.
captainsafia commentedon Sep 15, 2025
Correct.
I have mixed thoughts about taking advantage of the push functionality in
dotnet publishto do this. I like the idea of modeling tag/push as distinct steps, instead of overloading the "build image" step with functionality that also does the remote push.eerhardt commentedon Sep 15, 2025
cc Chet Husk (@baronfel) if he has opinions on whether we should use
dotnet publish's capability of pushing to the remote registry or not.In general, it isn't horrible that I need Docker Desktop running to do
aspire deploy, but it is a paper cut.baronfel commentedon Sep 15, 2025
I mean, of course I'm going to say you should use our stuff.
Having said that, what you could do is probe for docker first fallback to the SDK if it's not around and you're publishing .NET projects.
davidfowl commentedon Oct 16, 2025
I think we should do this and have a way to opt into (via IConfiguration) using the container runtime to push images. I think it means breaking up into much smaller steps as well since today everything is happening in a single step.
captainsafia commentedon Oct 17, 2025
What od you mean by this? Our steps are currently more granular than azd's because we split up build and tag+push.
Using dotnet publish to push would make it less granular unless there is a way to call
dotnet publishtwice (once to build and once to push).davidfowl commentedon Oct 17, 2025
I think of it like a mini pipeline per project instead of grouping functionality for all compute resources.
These steps would run concurrently.
project0 = step-project0-build-and-push
container0 = step-container0-build -> step-container0-push
baronfel commentedon Oct 17, 2025
I do have a PR that separates the logical steps involved so that everything is much more incremental (in the MSBuild sense). It should be very possible to enable separate explicit build commands for those steps based on those primitives if y'all really need that. That PR is kinda parked right now due to a bunch of 10 GA work, but if we need to put actual engineers on it to close it out for y'all we should talk to Marc Paine (@marcpopMSFT) about prioritization.
captainsafia commentedon Oct 17, 2025
Ah, I see. I think this is unrelatd to this docker issue since it impacts other scenarios as well, like more granular deployments for compute environments as well.
For image builds, we can probably remove the parallelism from the
ResourceContainerImageBuilderand update the implementation to emit pipeline steps itself instead of executing the logic.I also realized we're a little inconsistent in our API shapes for that class.
BuildImagetakes multiple resources as arguments but not the other two (ref).It's not blocking at the moment especially since we rely on the container runtime API above to do the tag + push separate from build which I think works better with a more granular pipeline.
davidfowl commentedon Oct 17, 2025
I see it like delegating to the resource instead of having an outer orchestra or drive. Ifs not inconsistent, its inversion of control.
aspire deployfor v13 #12225aspire deployfor v13 #12225davidfowl commentedon Nov 1, 2025
Turns out we need this until we support a build and push which means containers don't end up in the local docker registry.
maddymontaquila commentedon May 14, 2026
This has been addressed/resolved in #13576. Closing as done. Thank you for filing! If you're still experiencing issues with the latest version, please open a new issue.
davidfowl commentedon May 14, 2026
Reopening after reviewing the recent bulk closure. The close comment appears to cite work that does not fully address this issue, so this should remain open for normal triage.