Skip to content

WithVolume vs. WithBindMount #2879

@AndiRudi

Description

@AndiRudi

Type of issue

Missing information

Description

I am trying for a while now to configure sftpgo as a docker container with a file system mounted so that we have a base path for the folders of the sftp. It seems that WithVolume creates the volume and adds it to the container, but the sftpgo service cannot create subfolders due to permission issues. The volume is mounted with root user. Also I don't really understand the difference between WithBindMount and WithVolume. I think some more examples wouldn't hurt.

Page URL

https://learn.microsoft.com/en-us/dotnet/aspire/fundamentals/persist-data-volumes

Content source URL

https://github.com/dotnet/docs-aspire/blob/main/docs/fundamentals/persist-data-volumes.md

Document Version Independent Id

ba7db918-8e7f-2f6f-3af7-caae9b40d345

Platform Id

b26c8f68-a8a2-d3a7-448c-877b1f63d35b

Article author

@IEvangelist

Related Issues


Associated WorkItem - 416516

Metadata

Metadata

Assignees

Labels

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions