package specconv
import "github.com/opencontainers/runc/libcontainer/specconv"
Package specconv implements conversion of specifications to libcontainer configurations
Index ¶
- func CreateLibcontainerConfig(opts *CreateOpts) (*configs.Config, error)
- func Example() *specs.Spec
- func ToRootless(spec *specs.Spec)
- type CreateOpts
Functions ¶
func CreateLibcontainerConfig ¶
func CreateLibcontainerConfig(opts *CreateOpts) (*configs.Config, error)
CreateLibcontainerConfig creates a new libcontainer configuration from a given specification and a cgroup name
func Example ¶
func Example() *specs.Spec
Example returns an example spec file, with many options set so a user can see what a standard spec file looks like.
func ToRootless ¶
func ToRootless(spec *specs.Spec)
ExampleRootless returns an example spec file that works with rootless containers. It's essentially a modified version of the specfile from Example().
Types ¶
type CreateOpts ¶
type CreateOpts struct { CgroupName string UseSystemdCgroup bool NoPivotRoot bool NoNewKeyring bool Spec *specs.Spec Rootless bool }
Source Files ¶
- Version
- v1.0.0-rc4
- Published
- Aug 2, 2017
- Platform
- linux/amd64
- Imports
- 10 packages
- Last checked
- 32 minutes ago –
Tools for package owners.