Aspire.Hosting.Docker - Product Volumes aren't mapped properly.
- 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
```
resource.PublishAsDockerComposeService(
(_, service) =>
{
service.Volumes.Clear();
service.Volumes.Add(new()
{
Name = "data",
Source = "./data",
Target = "/data",
});
}
);
```
Results in
- *o0
under volumes for the project.
### Expected Behavior
Should result in - ./data:/data
### Steps To Reproduce
Add a publishing volume to a project in the aspire host and then publish it using the CLI.
### Exceptions (if any)
None.
### .NET Version info
.NET SDK:
Version: 9.0.303
Commit: 5d97611193
Workload version: 9.0.300-manifests.88387b28
MSBuild version: 17.14.13+65391c53b
### Anything else?
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.