Documentation ¶
Overview ¶
Package container allows for running a process in a container.
Index ¶
Constants ¶
View Source
const (
// DefaultApparmorProfile is the default apparmor profile for the containers.
DefaultApparmorProfile = "docker-default"
)
View Source
const (
// DefaultTarballPath holds the default path for the embedded tarball.
DefaultTarballPath = "image.tar"
)
Variables ¶
View Source
var DefaultSeccompProfile = &specs.LinuxSeccomp{}
DefaultSeccompProfile defines the whitelist for the default seccomp profile.
Functions ¶
func EmbedImage ¶
EmbedImage pulls a docker image locally. Creates a tarball of it's contents and then embeds the tarball as binary data into an output bindata.go file.
Types ¶
type Container ¶
type Container struct { ID string Spec *specs.Spec PIDFile string ConsoleSocket string Root string Detach bool UseSystemdCgroup bool NoPivotRoot bool NoNewKeyring bool Rootless bool HostNetwork bool }
Container defines the behavior and settings for a container object.
Click to show internal directories.
Click to hide internal directories.