Share via


Volume.ReadOnly Property

Definition

Gets or sets a value indicating whether the volume is mounted as read-only.

[YamlDotNet.Serialization.YamlMember(Alias="read_only")]
public bool? ReadOnly { get; set; }
[<YamlDotNet.Serialization.YamlMember(Alias="read_only")>]
member this.ReadOnly : Nullable<bool> with get, set
Public Property ReadOnly As Nullable(Of Boolean)

Property Value

Attributes
YamlDotNet.Serialization.YamlMemberAttribute

Remarks

When set to true, the volume will be mounted with read-only permissions, preventing modification of the data within the container. This is commonly used to enforce data immutability for certain use cases.

Applies to