microsoft / microsoft/aspire

Publishing as dockerfile doesnt call right command to publish image

Open
#12,222 7 comments 0 reactions 0 assignees View on GitHub
area-deployment
Dominant language
C#
Stars
6.3k
Forks
991
Avg merge
2d 15h
Merged PRs (30d)
196

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Describe the bug

From what I can tell i have this setup right to create a docker-compose file and build/publish the image to my local. (it also worked under 9.3.1)

when i run `aspire publish --debug` i get this:

`[16:12:45] [dbug] DotNetCliRunner: dotnet(49088) stdout: docker buildx (stderr): WARNING: No output specified with docker-container driver. Build result will only remain in the build cache. To push result image into registry use --push or to load image into docker use
--load`

the command ran was this:

`[16:10:24] [dbug] DotNetCliRunner: dotnet(49088) stdout: Running Docker CLI with arguments: buildx build --file "C:\Projects\jadpact-source\Web\apps\JADBMW\Dockerfile" --tag "jadbmw" "C:\Projects\jadpact-source"`

Im using podman with docker compat turned on

Image

### Expected Behavior

expected an image to be mage for the jadbmw

### Steps To Reproduce

Left in the bug mostly. but have a react app and publish as dockerfile and use podman. you should see no image getting made. if you get what i get.

### Exceptions (if any)

_No response_

### .NET Version info

9.0.305

### Anything else?

Aspire 9.5.1 (upgrading from 9.3.1)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing `aspire publish --debug` with the React app, the shown Dockerfile, and Podman using Docker compatibility. Compare the logged `docker buildx build` command with the expected image creation behavior, then verify that a `jadbmw` image is produced on Aspire 9.5.1 and .NET 9.0.305.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, docker
Domain
cli, devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.