microsoft / microsoft/aspire

Aspire.Hosting.Docker - Product Volumes aren't mapped properly.

Open
#10,784 1 comment 0 reactions 0 assignees View on GitHub
area-deployment docker-compose
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.