docker

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: BSD-2-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultBuildDockerfileContent []byte

Functions

func GetDefaultBaseBuildDockerfiles

func GetDefaultBaseBuildDockerfiles() [2]string

func RunContainer added in v0.3.0

func RunContainer(runOptions RunOptions, writer io.Writer) error

RunContainer builds docker image and runs a container.

Types

type RunOptions added in v0.3.0

type RunOptions struct {
	// BuildContext docker image build context directory.
	BuildCtxDir string
	// ImageTag - docker image tag.
	ImageTag string
	// Command is a command to run in container.
	Command []string
	// Binds - directory bindings in "host_dir:container_dir" format.
	Binds []string
	// Verbose, if set, verbose output is enabled.
	Verbose bool
}

RunOptions options for docker container run.

Jump to

Keyboard shortcuts

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