docker

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CurrentUserAndGroupForDockerExecution

func CurrentUserAndGroupForDockerExecution() string

CurrentUserAndGroupForDockerExecution gets a user and group id combination for the current user that can be used for execution.

func DockerDaemonIsRunning

func DockerDaemonIsRunning() bool

func Exec

func Exec(containerID string, command ExecOptions) (ExitCode int)

func NewClientFromEnvOrPanic

func NewClientFromEnvOrPanic() *client.Client

Types

type ExecOptions

type ExecOptions struct {
	Command    []string
	Env        []string
	WorkingDir string
	User       string
}

Jump to

Keyboard shortcuts

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