Versions in this module Expand all Collapse all v1 v1.9.1 Mar 9, 2022 Changes in this version type Client + func (c *Client) ContainerKillByImage(image string, signal string) (err error) + func (c *Client) ContainerList() ([]types.Container, error) + func (c *Client) RemoveContainer(image string) (err error) + func (c *Client) StopContainer(image string) (err error) v1.5.0 Nov 23, 2021 Changes in this version type Client + func (c *Client) ContainerRun(image string, conf container.Config, hostConf container.HostConfig) (containerID string, err error) + func (c *Client) GetImageNewestTag(img Image) (tag string, err error) v1.4.0 Oct 19, 2021 Changes in this version + type Client struct + DockerClient *client.Client + func GetClient() *Client + func (c *Client) BuildFromPath(path, tag string) (imageID string, err error) + func (c *Client) BuildFromTar(tar io.Reader, tag string) (imageID string, err error) + func (c *Client) ContainerIsRunningByImage(image string) (isRunning bool, err error) + func (c *Client) ContainerRestartByImage(image string) (err error) + func (c *Client) ContainerRunByImage(image Image) (containerID string, err error) + func (c *Client) ContainerStopByImage(image string) (err error) + func (c *Client) GetContainerByImage(image string) (id string, err error) + func (c *Client) ImageLoad(target string) (err error) + func (c *Client) ImageRemove(refStr string) (err error) + func (c *Client) ImageSave(target string, imgs ...Image) (err error) + func (c *Client) Inspect(imageID string) (inspect types.ImageInspect, err error) + func (c *Client) IsImageAdd(refStr string) (isAdded bool) + func (c *Client) IsImageNewest() (isNewest bool, err error) + func (c *Client) Pull(refStr string) (err error) + type ErrorDetail struct + Message string + type Image struct + Name string + Registry string + Tag string + func (i Image) RefStr() string + func (i Image) Repository() string + type LineResult struct + AUX struct{ ... } + Error string + ErrorDetail ErrorDetail + Stream string