Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainerIsDocker ¶
ContainerIsDocker returns true if the given container ID corresponds to a Docker container. It does this by first trying to query Docker for the container. If this doesn't work, it uses a heuristic based on the container's rootfs.
Types ¶
type ContainerInfo ¶
type Docker ¶
type Docker struct {
// contains filtered or unexported fields
}
func DockerConnect ¶
DockerConnect establishes a session with the Docker daemon.
func (*Docker) ContainerGetImageID ¶
ContainerGetImageID returns the image ID of the given container; may be called during container creation.
func (*Docker) ContainerGetInfo ¶
func (d *Docker) ContainerGetInfo(containerID string) (*ContainerInfo, error)
ContainerGetInfo returns info for the given container. Must be called after the container is created.
func (*Docker) Disconnect ¶
func (*Docker) GetDataRoot ¶
GetDataRoot returns the Docker daemon's data-root dir (usually "/var/lib/docker/").
Click to show internal directories.
Click to hide internal directories.