Versions in this module Expand all Collapse all v0 v0.2.1 Nov 1, 2026 v0.2.0 Oct 25, 2026 Changes in this version + const LabelConfigFile + const LabelLocalFolder + var ErrContainerNotFound = errors.New("docker host: container not found") + type ContainerInfo struct + CreatedAt string + ID string + Image string + Labels map[string]string + Running bool + StartedAt string + WorkingDir string + type ExecRequest struct + Cmd []string + ContainerID string + Env map[string]string + Stderr io.Writer + Stdin io.Reader + Stdout io.Writer + TTY bool + TerminalSize *[2]uint + User string + WorkDir string + type ExecResult struct + ExitCode int + Stderr []byte + Stdout []byte + type Host struct + func New(c *dockerclient.Client, opts Options) *Host + func (h *Host) Client() *dockerclient.Client + func (h *Host) Exec(ctx context.Context, req ExecRequest) (*ExecResult, error) + func (h *Host) Execer(containerID string) runner.Execer + func (h *Host) FindByLabels(ctx context.Context, labels map[string]string) (string, error) + func (h *Host) Inspect(ctx context.Context, localWorkspace string) (*ContainerInfo, error) + func (h *Host) InspectByID(ctx context.Context, id string) (*ContainerInfo, error) + func (h *Host) Remove(ctx context.Context, localWorkspace string) error + func (h *Host) RemoveByID(ctx context.Context, id string) error + func (h *Host) Stop(ctx context.Context, localWorkspace string) error + func (h *Host) StopByID(ctx context.Context, id string) error + func (h *Host) Up(ctx context.Context, req UpRequest) (*UpResult, error) + type Options struct + Logger func(format string, args ...any) + RegistryAuth RegistryAuth + Stderr io.Writer + Stdout io.Writer + StopTimeout time.Duration + TerminalSize *[2]uint + type RegistryAuth interface + EngineAuth func(ref string) (string, error) + type RemoteUserUIDUpdate struct + DefaultOff bool + HostGID int + HostUID int + type UpRequest struct + ContainerDataFolder string + ContainerSystemDataFolder string + ContainerWorkspace string + DefaultUserEnvProbe string + Dotfiles runner.Dotfiles + Features []features.Resolved + GPUAvailability string + IDLabels map[string]string + Image string + ImageBuilt bool + Lifecycle runner.LifecycleControls + LocalEnv map[string]string + LocalWorkspace string + Mounts []mount.Mount + OmitConfigRemoteEnvFromMetadata bool + RemoteEnv map[string]string + RemoteUserUIDUpdate *RemoteUserUIDUpdate + Secrets map[string]string + SkipLifecycle bool + SkipPostAttach bool + Spec *spec.DevContainer + SpecPath string + WorkspaceMount *mount.Mount + type UpResult struct + ContainerID string + CreatedThisCall bool + PhasesRun []lifecycle.Hook + StartedThisCall bool