Versions in this module Expand all Collapse all v0 v0.1.0 Oct 5, 2025 Changes in this version + var ErrMissingGPUDriver = errors.New("docker could not find the required gpu driver") + type CommandExecutor struct + func (e *CommandExecutor) Execute(command string, args ...string) *exec.Cmd + type Docker struct + RegistryHost string + func NewDocker(registryHost string, executor Executor) *Docker + func (d *Docker) Build(dockerfileContent, imageName, platform, buildContext string) error + func (d *Docker) Login(username string, password string) error + func (d *Docker) Logout() error + func (d *Docker) Push(imageName string) (string, error) + func (d *Docker) Run(imageName, platform, containerName string, rm, detach bool, gpus string, ...) (string, error) + type Executor interface + Execute func(command string, args ...string) *exec.Cmd