package oci

import "github.com/docker/cli/components/engine/oci"

Index

Functions

func DefaultLinuxSpec

func DefaultLinuxSpec() specs.Spec

DefaultLinuxSpec create a default spec for running Linux containers

func DefaultOSSpec

func DefaultOSSpec(osName string) specs.Spec

DefaultOSSpec returns the spec for a given OS

func DefaultSpec

func DefaultSpec() specs.Spec

DefaultSpec returns the default spec used by docker for the current Platform

func DefaultWindowsSpec

func DefaultWindowsSpec() specs.Spec

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`

Source Files

defaults.go devices_unsupported.go namespaces.go

Version
v17.12.0-ce+incompatible
Published
Dec 27, 2017
Platform
js/wasm
Imports
5 packages
Last checked
6 hours ago

Tools for package owners.