container

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2015 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

package container contains convenience functions for manipulating containers

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig = docker.Config{
	AttachStdin:  true,
	AttachStdout: true,
	AttachStderr: true,
	OpenStdin:    true,
	StdinOnce:    true,
}

Functions

func ContainerLogs

func ContainerLogs(id string, out io.Writer) error

func IpAddr

func IpAddr(containerId string) (string, error)

func KillContainer

func KillContainer(id string) error

func NewDockerClientFromEnv

func NewDockerClientFromEnv() (*docker.Client, error)

func PipeToStdin

func PipeToStdin(id string, in io.Reader) error

func PullImage

func PullImage(image string) error

func RawStartContainer

func RawStartContainer(opts docker.CreateContainerOptions) (string, error)

func StartContainer

func StartContainer(image string, command []string) (string, error)

func StopContainer

func StopContainer(id string) error

func WaitContainer

func WaitContainer(id string) (int, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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