package oci

import "github.com/dotcloud/docker/oci"

Index

Functions

func DefaultSpec

func DefaultSpec() specs.Spec

DefaultSpec returns default oci spec used by docker.

func Device

func Device(d *configs.Device) specs.Device

Device transforms a libcontainer configs.Device to a specs.Device object.

func DevicesFromPath

func DevicesFromPath(pathOnHost, pathInContainer, cgroupPermissions string) (devs []specs.Device, devPermissions []specs.DeviceCgroup, err error)

DevicesFromPath computes a list of devices and device permissions from paths (pathOnHost and pathInContainer) and cgroup permissions.

func RemoveNamespace

func RemoveNamespace(s *specs.Spec, nsType specs.NamespaceType)

RemoveNamespace removes the `nsType` namespace from OCI spec `s`

Source Files

defaults_linux.go devices_linux.go namespaces.go

Version
v1.13.0-rc4
Published
Dec 16, 2016
Platform
linux/amd64
Imports
8 packages
Last checked
9 minutes ago

Tools for package owners.