Versions in this module Expand all Collapse all v1 v1.0.2 Mar 26, 2025 v1.0.1 Mar 26, 2025 Changes in this version + type Client struct + func NewClient(dockerSocket string) (*Client, error) + func (c *Client) BuildImage(ctx context.Context, contextPath string, dockerfileName string, tags []string, ...) (types.ImageBuildResponse, error) + func (c *Client) ContainerLogs(ctx context.Context, containerID string, follow, timestamps bool, tail string) (io.ReadCloser, error) + func (c *Client) CreateContainer(ctx context.Context, config *container.Config, ...) (container.CreateResponse, error) + func (c *Client) ExecCommand(ctx context.Context, containerID string, cmd string) (string, error) + func (c *Client) InspectContainer(ctx context.Context, containerID string) (types.ContainerJSON, error) + func (c *Client) InspectImage(ctx context.Context, imageID string) (types.ImageInspect, error) + func (c *Client) ListContainers(ctx context.Context, all bool) ([]types.Container, error) + func (c *Client) ListImages(ctx context.Context, all bool) ([]image.Summary, error) + func (c *Client) PullImage(ctx context.Context, imageName string) (io.ReadCloser, error) + func (c *Client) RemoveContainer(ctx context.Context, containerID string, force, removeVolumes bool) error + func (c *Client) RemoveImage(ctx context.Context, imageID string, force bool) ([]image.DeleteResponse, error) + func (c *Client) RestartContainer(ctx context.Context, containerID string, timeout *int) error + func (c *Client) SearchImages(ctx context.Context, term string, limit int) ([]registry.SearchResult, error) + func (c *Client) StartContainer(ctx context.Context, containerID string) error + func (c *Client) StopContainer(ctx context.Context, containerID string, timeout *int) error