docker

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultRunDockerCmdStds = RunDockerCmdStds{
	Stdout: os.Stdout,
	Stderr: os.Stderr,
	Stdin:  os.Stdin,
}

Functions

func BuildImageFromCli

func BuildImageFromCli(buildArgs []string) (string, error)

BuildImageFromCli returns the id for the built image.

func CreateTarImageFromDockerfile

func CreateTarImageFromDockerfile(dfilePath string, tarPath string) (imageID string, err error)

CreateTarImageFromDockerfile builds docker image from dockerfile and exports the image as a tar file.

func RunDockerCmd

func RunDockerCmd(cmdStr string, args []string, stds *RunDockerCmdStds) error

RunDockerCmd runs a given Docker command. args and stds are optional.

Types

type RunDockerCmdStds

type RunDockerCmdStds struct {
	Stdout io.Writer
	Stderr io.Writer
	Stdin  io.Reader
}

Jump to

Keyboard shortcuts

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