command

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildImage

func BuildImage(
	img string,
	dockerfile string,
	arch []string,
	secrets map[string]string,
	buildArgs map[string]string,
	dockerDriver string,

) string

func CommitHash

func CommitHash() string

func CommitMessage

func CommitMessage() string

func ContainerLogs

func ContainerLogs(container string, follow bool, lines int, since string) string

func CreateBuilder

func CreateBuilder(builder string, driver string, arch []string) string

func CreateFileWithContents

func CreateFileWithContents(file string, contents string) string

func CreateNetwork added in v0.2.1

func CreateNetwork() string

func Docker

func Docker(args ...string) string

Docker is a helper function for building long commands that may have conditional args. For simple commands use fmt.

func Exec

func Exec(container string, execCmd string, interactive bool) string

func IsDockerInstalled

func IsDockerInstalled() string

func IsDockerRunning

func IsDockerRunning() string

func ListAllContainers

func ListAllContainers() string

func ListBuilders

func ListBuilders(builder string) string

func ListRunningContainers

func ListRunningContainers() string

func Mkdir

func Mkdir(dir string) string

func PullImage

func PullImage(img string) string

func PushImage

func PushImage(img string) string

func RegistryLogin

func RegistryLogin(registry, user string) string

func RegistryLogout

func RegistryLogout() string

func RemoveContainer

func RemoveContainer(container string) string

func RunContainer

func RunContainer(img, container, service string, env map[string]string, volumes []string) string

func RunProxy

func RunProxy(img string, container string, labels map[string]any, args map[string]any) string

func StartContainer

func StartContainer(img string) string

func StopContainer

func StopContainer(container string) string

func TagImage

func TagImage(img, registryImg string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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