run

package
v0.0.0-...-69f2995 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 2, 2021 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteContainer

func DeleteContainer(containersDir string, name string)

func RunContainer

func RunContainer(containersDir string, name string) error

Types

type ImageConfig

type ImageConfig struct {
	OciVersion    string         `json:"ociVersion"`
	ProcessConfig ProcessConfig  `json:"process"`
	Hostname      string         `json:"hostname"`
	MountsConfig  []MountsConfig `json:"mounts"`
}

func GetImageConfig

func GetImageConfig(imageDir string) ImageConfig

type MountsConfig

type MountsConfig struct {
	Destination string   `json:"destination"`
	Source      string   `json:"source"`
	Type        string   `json:"type"`
	Options     []string `json:"options,omitempty"`
}

type ProcessConfig

type ProcessConfig struct {
	Terminal bool           `json:"terminal"`
	User     map[string]int `json:"user"`
	Args     []string       `json:"args"`
	Env      []string       `json:"env"`
	Cwd      string         `json:"cwd"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL