Share via


Service.CapDrop Property

Definition

Represents a list of Linux capabilities to be dropped from the service's container. This property can be used to restrict specific capabilities that the container should not have access to, enhancing security by implementing the principle of least privilege.

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

Property Value

Attributes
YamlDotNet.Serialization.YamlMemberAttribute

Applies to