docker

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2016 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Handler for Docker containers.

Index

Constants

This section is empty.

Variables

View Source
var ArgDockerEndpoint = flag.String("docker", "unix:///var/run/docker.sock", "docker endpoint")
View Source
var DockerNamespace = "docker"

The namespace under which Docker aliases are unique.

Functions

func Client

func Client() (*dclient.Client, error)

func ContainerNameToDockerId

func ContainerNameToDockerId(name string) string

Returns the Docker ID from the full container name.

func DockerImages

func DockerImages() ([]docker.APIImages, error)

func DockerInfo

func DockerInfo() (docker.DockerInfo, error)

func DockerStateDir

func DockerStateDir() string

TODO(vmarmol): Export run dir too for newer Dockers. Directory holding Docker container state information.

func Register

func Register(factory info.MachineInfoFactory, fsInfo fs.FsInfo, ignoreMetrics container.MetricSet) error

Register root container before running this function!

func RootDir

func RootDir() string

func ValidateInfo added in v0.23.0

func ValidateInfo() (*docker.DockerInfo, error)

Checks whether the dockerInfo reflects a valid docker setup, and returns it if it does, or an error otherwise.

Types

This section is empty.

Jump to

Keyboard shortcuts

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