docker

package
v0.0.0-...-479c197 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckDocker

func CheckDocker(ctx context.Context) error

func Client

func Client() *client.Client

func Init

func Init() (*client.Client, error)

func PullImageIfNotCached

func PullImageIfNotCached(ctx context.Context, imageName string) error

func RunOnceWithConfig

func RunOnceWithConfig(ctx context.Context, cfg container.Config, hostConfig container.HostConfig, stdout, stderr *ContainerOutput) error

Types

type ContainerOutput

type ContainerOutput struct {
	// contains filtered or unexported fields
}

func NewContainerOutput

func NewContainerOutput() *ContainerOutput

func (*ContainerOutput) Bytes

func (o *ContainerOutput) Bytes() []byte

func (*ContainerOutput) String

func (o *ContainerOutput) String() string

func (*ContainerOutput) Write

func (o *ContainerOutput) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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