Versions in this module Expand all Collapse all v0 v0.0.1 Jan 9, 2018 Changes in this version + var DefaultClient = New() + var ErrCouldntStartDocker = errors.New("Couldn't start docker daemon. Try starting it manually") + var ErrDockerTimeout = errors.New("Timed out waiting for docker to start") + func Connect() error + func ContainerExec(id string, command []string) (resp types.ContainerExecInspect, err error) + func CreateNetwork(s string) (id string, err error) + func Images() ([]types.ImageSummary, error) + func IsDockerRunning() bool + func IsImagePulled(image string) (status bool, err error) + func NetworkByID(s string) (types.NetworkResource, error) + func NetworkByName(s string) (types.NetworkResource, error) + func PullImage(image string, pull bool) (err error) + func RemoveImage(image string) (err error) + func RunContainer(config *container.Config, hostConfig *container.HostConfig) (container.ContainerCreateCreatedBody, error) + func StartDocker() error + type CLI struct + Client *client.Client + Ctx context.Context + func (c *CLI) Connect() (err error) + func (c *CLI) ContainerExec(id string, command []string) (resp types.ContainerExecInspect, err error) + func (c *CLI) CreateNetwork(name string) (id string, err error) + func (c *CLI) DockerAPIversion() (version string) + func (c *CLI) Images() ([]types.ImageSummary, error) + func (c *CLI) IsDockerRunning() bool + func (c *CLI) IsImagePulled(image string) (status bool, err error) + func (c *CLI) NetworkByID(id string) (network types.NetworkResource, err error) + func (c *CLI) NetworkByName(name string) (network types.NetworkResource, err error) + func (c *CLI) PullImage(image string, pull bool) (err error) + func (c *CLI) RemoveImage(image string) (err error) + func (c *CLI) RunContainer(config *container.Config, hostConfig *container.HostConfig) (container container.ContainerCreateCreatedBody, err error) + func (c *CLI) StartDocker() error + type Client interface + Connect func() (err error) + IsDockerRunning func() bool + StartDocker func() error + func New() Client + type DockerContainer interface + ContainerExec func(id string, command []string) (resp types.ContainerExecInspect, err error) + RunContainer func(config *container.Config, hostConfig *container.HostConfig) (container.ContainerCreateCreatedBody, error) + type DockerImage interface + Images func() ([]types.ImageSummary, error) + IsImagePulled func(image string) (status bool, err error) + PullImage func(image string, pull bool) (err error) + RemoveImage func(image string) (err error) + type DockerNetwork interface + CreateNetwork func(name string) (id string, err error) + NetworkByID func(id string) (network types.NetworkResource, err error) + NetworkByName func(name string) (network types.NetworkResource, err error)