Versions in this module Expand all Collapse all v2 v2.3.1 May 25, 2026 Changes in this version + func Check(ctx context.Context) error + func CopyFromContainer(ctx context.Context, cid, basePath string, fs afero.Fs) error + func GetContainerByName(ctx context.Context, name string, includeStopped bool) (*container.Summary, bool, error) + func GetContainerIDByName(ctx context.Context, name string, includeStopped bool) (string, bool, error) + func GetNetworkIDByName(ctx context.Context, name string) (string, bool, error) + func NewClient() (*client.Client, error) + func RunContainer(ctx context.Context, img string, opts ...RunContainerOption) ([]byte, []byte, error) + func StartContainer(ctx context.Context, name, img string, opts ...StartContainerOption) (string, error) + func StartContainerByID(ctx context.Context, id string) error + func StopContainerByID(ctx context.Context, cid string) error + func TarFromContainer(ctx context.Context, cid, path string) ([]byte, error) + func WaitForContainerByID(ctx context.Context, cid string) error + type RunContainerOption func(*runContainerConfig) + func RunWithBindMount(hostPath, containerPath string) RunContainerOption + func RunWithCommand(cmd []string) RunContainerOption + func RunWithExtraHosts(hosts []string) RunContainerOption + func RunWithNetworkName(name string) RunContainerOption + func RunWithStdin(data []byte) RunContainerOption + type StartContainerOption func(*startContainerConfig) + func StartWithBindMount(hostPath, containerPath string) StartContainerOption + func StartWithCommand(cmd []string) StartContainerOption + func StartWithCopyFiles(tarball []byte, path string) StartContainerOption + func StartWithEnv(env ...string) StartContainerOption + func StartWithNetworkID(nid string) StartContainerOption + func StartWithWorkingDirectory(path string) StartContainerOption v2.3.0 May 21, 2026