Share via


Service.CapAdd Property

Definition

Specifies a list of Linux capabilities to add to the container.

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

Property Value

Attributes
YamlDotNet.Serialization.YamlMemberAttribute

Remarks

Linux capabilities allow fine-grained control of the privileges assigned to a process. This property provides the ability to add specific capabilities to the set of capabilities available to the container. Each capability should be specified as a string in the list. Use this property to enhance the container's permissions beyond the default set provided by the Docker runtime, if required by the application running inside the container.

Applies to