ComposeFile.Volumes Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a collection of volume definitions within a Docker Compose file.
[YamlDotNet.Serialization.YamlMember(Alias="volumes", DefaultValuesHandling=YamlDotNet.Serialization.DefaultValuesHandling.OmitEmptyCollections)]
public System.Collections.Generic.Dictionary<string,Aspire.Hosting.Docker.Resources.ServiceNodes.Volume> Volumes { get; set; }
[<YamlDotNet.Serialization.YamlMember(Alias="volumes", DefaultValuesHandling=YamlDotNet.Serialization.DefaultValuesHandling.OmitEmptyCollections)>]
member this.Volumes : System.Collections.Generic.Dictionary<string, Aspire.Hosting.Docker.Resources.ServiceNodes.Volume> with get, set
Public Property Volumes As Dictionary(Of String, Volume)
Property Value
- Attributes
-
YamlDotNet.Serialization.YamlMemberAttribute
Remarks
The volumes are defined using a dictionary structure where the key represents the name of the volume, and the value is an instance of the Volume class. Volumes can be used to share data between containers or between a container and the host system.