docker

package
v0.1.18 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cleanup

func Cleanup(ctx context.Context) error

func PullImage

func PullImage(ctx context.Context, logger *zap.SugaredLogger, dockerLogs io.Writer, image string) error

func Run

func Run(
	ctx context.Context,
	logger *zap.SugaredLogger,
	dockerLogs io.Writer,
	image string,
	params DockerRunParams) error

Types

type DockerRunParams

type DockerRunParams struct {
	User      *user.User
	Mounts    map[string]string
	Cmd       []string
	PullImage bool
	Env       []string
	Tty       bool
}

Jump to

Keyboard shortcuts

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