docker

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MountRWOption   string = ":z"
	MountROOption   string = ":z,ro"
	PrivilegedFlag  string = "--privileged"
	InteractiveFlag string = "-i"
)

Variables

This section is empty.

Functions

func RunDocker

func RunDocker(ctx context.Context, cmdFactory opctx.CmdFactory, dockerArgs []string,
	containerTag string, entryPointArgs []string, logFile string,
	logFilter func(context.Context, string),
) (string, error)

RunDocker runs a docker command with the specified arguments and returns the stdout output as a string. It can also capture output from a log file (logFile) in real-time, filter it (logFilter) and send it to the console.

Types

This section is empty.

Jump to

Keyboard shortcuts

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