docker

package
v0.1.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 16, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComposeCommand

func ComposeCommand() []string

ComposeCommand returns the docker compose invocation (docker compose vs docker-compose).

Types

type Executor

type Executor struct {
	Verbose bool
	WorkDir string
}

Executor wraps docker CLI operations with a working directory and verbosity.

func NewExecutor

func NewExecutor(verbose bool, workDir string) *Executor

NewExecutor returns a configured docker executor.

func (*Executor) Build

func (e *Executor) Build(imageName, context string, extraArgs ...string) error

Build runs docker build with the supplied tag, context, and additional args.

func (*Executor) CheckAvailability

func (e *Executor) CheckAvailability() error

CheckAvailability ensures docker CLI and daemon are reachable.

func (*Executor) Push

func (e *Executor) Push(imageName string) error

Push pushes the provided image to its registry.

func (*Executor) Run

func (e *Executor) Run(args ...string) error

Run executes docker with the provided arguments.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL