docker

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 28 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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