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 first checks the container's rootfs, which is cheap and local; only if that is inconclusive does it query the Docker daemon.
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.