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
}
Container defines the behavior and settings for a container object.
func (*Container) Run ¶
Run starts the container. It returns the exit status or -1 and an error. Signals sent to the current process will be forwarded to container.
Source Files
¶
- container.go
- image.go
- notify_socket.go
- process.go
- pull.go
- rlimit.go
- rootfs.go
- runner.go
- seccomp_unsupported.go
- signals.go
- spec.go
- tty.go
Click to show internal directories.
Click to hide internal directories.