Share via


ContainerV1.SecurityContext Property

Definition

Gets or sets the security context for a container.

[YamlDotNet.Serialization.YamlMember(Alias="securityContext")]
public Aspire.Hosting.Kubernetes.Resources.SecurityContextV1? SecurityContext { get; set; }
[<YamlDotNet.Serialization.YamlMember(Alias="securityContext")>]
member this.SecurityContext : Aspire.Hosting.Kubernetes.Resources.SecurityContextV1 with get, set
Public Property SecurityContext As SecurityContextV1

Property Value

Attributes
YamlDotNet.Serialization.YamlMemberAttribute

Remarks

Represents the security options applied to the container, including capabilities, user/group configurations, and root filesystem attributes. This property is used to configure and customize security-related settings, such as user privileges, filesystem permissions, and security profiles (AppArmor, Seccomp).

Applies to