docker

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exec

func Exec(ctx context.Context, args ...string) error

func ExecRes

func ExecRes(ctx context.Context, args ...string) (stdout string, err error)

func RemoveImage

func RemoveImage(ctx context.Context, image string) error

func RunOnce

func RunOnce(ctx context.Context, image string, options RunOptions) error

func RunOnceRes

func RunOnceRes(ctx context.Context, image string, options RunOptions) (stdout string, err error)

Types

type Image

type Image struct {
	Sha string
	// contains filtered or unexported fields
}

func BuildDir

func BuildDir(ctx buildctx.Context, dirPath string) (Image, error)

func (*Image) Dispose

func (i *Image) Dispose() error

type RunOptions

type RunOptions struct {
	Volumes map[string]string
	Env     map[string]string
	Args    []string
	// If not empty, sets uid/gid of the user inside the container. Otherwise, the user is the current user.
	User string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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