docker

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2023 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InflateImage added in v0.8.0

func InflateImage(ctx context.Context, config InflateImageConfig) error

InflateImage downloads and inflates docker image in the current directory.

func RunContainer added in v0.9.0

func RunContainer(ctx context.Context, config RunContainerConfig) error

RunContainer runs container based on docker image.

Types

type InflateImageConfig added in v0.9.0

type InflateImageConfig struct {
	HTTPClient *http.Client
	CacheDir   string
	Image      string
	Tag        string
}

InflateImageConfig is the configuration of docker image inflation.

type RunContainerConfig added in v0.9.0

type RunContainerConfig struct {
	CacheDir   string
	Image      string
	Tag        string
	Name       string
	EnvVars    map[string]string
	User       string
	WorkingDir string
	Entrypoint []string
	Args       []string

	StdOut io.Writer
	StdErr io.Writer
}

RunContainerConfig is the configuration of running docker container.

Jump to

Keyboard shortcuts

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