Share via


Service.SecurityOpt Property

Definition

Represents a list of security options that can be applied to the container. This is used to configure security-related settings specific to the container such as SELinux labels or AppArmor profiles, providing fine-grained control over the container's security behavior.

[YamlDotNet.Serialization.YamlMember(Alias="security_opt", DefaultValuesHandling=YamlDotNet.Serialization.DefaultValuesHandling.OmitEmptyCollections)]
public System.Collections.Generic.List<string> SecurityOpt { get; set; }
[<YamlDotNet.Serialization.YamlMember(Alias="security_opt", DefaultValuesHandling=YamlDotNet.Serialization.DefaultValuesHandling.OmitEmptyCollections)>]
member this.SecurityOpt : System.Collections.Generic.List<string> with get, set
Public Property SecurityOpt As List(Of String)

Property Value

Attributes
YamlDotNet.Serialization.YamlMemberAttribute

Applies to