mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-23 02:51:55 +00:00
Add more OCI options
- Sysctl - CgroupsPath - RootfsPropagation Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
parent
1602277ba7
commit
d0aff83a21
@ -65,6 +65,9 @@ type MobyImage struct {
|
||||
Hostname string
|
||||
OomScoreAdj int `yaml:"oomScoreAdj"`
|
||||
DisableOOMKiller bool `yaml:"disableOOMKiller"`
|
||||
RootfsPropagation string `yaml:"rootfsPropagation"`
|
||||
CgroupsPath string `yaml:"cgroupsPath"`
|
||||
Sysctl map[string]string
|
||||
}
|
||||
|
||||
// NewConfig parses a config file
|
||||
@ -349,7 +352,7 @@ func ConfigInspectToOCI(image *MobyImage, inspect types.ImageInspect) ([]byte, e
|
||||
oci.Linux = &specs.Linux{
|
||||
// UIDMappings
|
||||
// GIDMappings
|
||||
// Sysctl
|
||||
Sysctl: image.Sysctl,
|
||||
Resources: &specs.LinuxResources{
|
||||
// Devices
|
||||
DisableOOMKiller: &image.DisableOOMKiller,
|
||||
@ -360,11 +363,11 @@ func ConfigInspectToOCI(image *MobyImage, inspect types.ImageInspect) ([]byte, e
|
||||
// HugepageLimits
|
||||
// Network
|
||||
},
|
||||
// CgroupsPath
|
||||
CgroupsPath: image.CgroupsPath,
|
||||
Namespaces: namespaces,
|
||||
// Devices
|
||||
// Seccomp
|
||||
// RootfsPropagation
|
||||
RootfsPropagation: image.RootfsPropagation,
|
||||
// MaskedPaths
|
||||
// ReadonlyPaths
|
||||
// MountLabel
|
||||
|
Loading…
Reference in New Issue
Block a user