package oci
import "github.com/docker/docker/oci"
Index ¶
- func AppendDevicePermissionsFromCgroupRules(devPermissions []specs.LinuxDeviceCgroup, rules []string) ([]specs.LinuxDeviceCgroup, error)
- func DefaultLinuxSpec() specs.Spec
- func DefaultOSSpec(osName string) specs.Spec
- func DefaultSpec() specs.Spec
- func DefaultWindowsSpec() specs.Spec
- func Device(d *configs.Device) specs.LinuxDevice
- func DevicesFromPath(pathOnHost, pathInContainer, cgroupPermissions string) (devs []specs.LinuxDevice, devPermissions []specs.LinuxDeviceCgroup, err error)
- func RemoveNamespace(s *specs.Spec, nsType specs.LinuxNamespaceType)
- func SetCapabilities(s *specs.Spec, caplist []string) error
Functions ¶
func AppendDevicePermissionsFromCgroupRules ¶
func AppendDevicePermissionsFromCgroupRules(devPermissions []specs.LinuxDeviceCgroup, rules []string) ([]specs.LinuxDeviceCgroup, error)
AppendDevicePermissionsFromCgroupRules takes rules for the devices cgroup to append to the default set
func DefaultLinuxSpec ¶
DefaultLinuxSpec create a default spec for running Linux containers
func DefaultOSSpec ¶
DefaultOSSpec returns the spec for a given OS
func DefaultSpec ¶
DefaultSpec returns the default spec used by docker for the current Platform
func DefaultWindowsSpec ¶
DefaultWindowsSpec create a default spec for running Windows containers
func Device ¶
func Device(d *configs.Device) specs.LinuxDevice
Device transforms a libcontainer configs.Device to a specs.Device object. Not implemented
func DevicesFromPath ¶
func DevicesFromPath(pathOnHost, pathInContainer, cgroupPermissions string) (devs []specs.LinuxDevice, devPermissions []specs.LinuxDeviceCgroup, err error)
DevicesFromPath computes a list of devices and device permissions from paths (pathOnHost and pathInContainer) and cgroup permissions. Not implemented
func RemoveNamespace ¶
func RemoveNamespace(s *specs.Spec, nsType specs.LinuxNamespaceType)
RemoveNamespace removes the `nsType` namespace from OCI spec `s`
func SetCapabilities ¶
SetCapabilities sets the provided capabilities on the spec All capabilities are added if privileged is true
Source Files ¶
defaults.go devices_unsupported.go namespaces.go oci.go
Directories ¶
Path | Synopsis |
---|---|
oci/caps |
- Version
- v20.10.11+incompatible
- Published
- Nov 18, 2021
- Platform
- js/wasm
- Imports
- 9 packages
- Last checked
- 1 hour ago –
Tools for package owners.