你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

SecurityContextDefinition interface

容器的安全上下文。

属性

allowPrivilegeEscalation

一个布尔值,该值指示 init 进程是否可以提升其特权

capabilities

从容器添加或删除的功能。

privileged

用于确定容器权限是否提升为 Privileged 的标志。

runAsGroup

设置容器的用户 GID。

runAsUser

设置容器的用户 UID。

seccompProfile

包含 seccomp 配置文件中 JSON 内容的 base64 编码字符串

属性详细信息

allowPrivilegeEscalation

一个布尔值,该值指示 init 进程是否可以提升其特权

allowPrivilegeEscalation?: boolean

属性值

boolean

capabilities

从容器添加或删除的功能。

capabilities?: SecurityContextCapabilitiesDefinition

属性值

privileged

用于确定容器权限是否提升为 Privileged 的标志。

privileged?: boolean

属性值

boolean

runAsGroup

设置容器的用户 GID。

runAsGroup?: number

属性值

number

runAsUser

设置容器的用户 UID。

runAsUser?: number

属性值

number

seccompProfile

包含 seccomp 配置文件中 JSON 内容的 base64 编码字符串

seccompProfile?: string

属性值

string