Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var DefaultCaps = []string{
"CAP_NET_RAW",
"CAP_NET_BIND_SERVICE",
"CAP_AUDIT_READ",
"CAP_AUDIT_WRITE",
"CAP_DAC_OVERRIDE",
"CAP_SETFCAP",
"CAP_SETPCAP",
"CAP_SETGID",
"CAP_SETUID",
"CAP_MKNOD",
"CAP_CHOWN",
"CAP_FOWNER",
"CAP_FSETID",
"CAP_KILL",
"CAP_SYS_CHROOT",
}
DefaultCaps is the default set of capabilities granted to an OCI container. Ref: https://github.com/opencontainers/runc/blob/main/libcontainer/SPEC.md#security
Functions ¶
func DefaultConfig ¶
DefaultConfig returns an OCI config generator with a default OCI configuration for cgroups v1 or v2 dependent on the current host.
func DefaultConfigV1 ¶
DefaultConfigV1 returns an OCI config generator with a default OCI configuration for cgroups v1.
func DefaultConfigV2 ¶
DefaultConfigV2 returns an OCI config generator with a default OCI configuration for cgroups v2. This is identical to v1 except that we use a cgroup namespace, and mount the namespaced cgroup fs into the container.
Types ¶
type Config ¶
Config is the OCI runtime configuration.
func (*Config) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (*Config) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.