docker

package
v0.9.6 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2024 License: Apache-2.0 Imports: 19 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrMissingDeviceDriver = errors.New("Docker is missing required device driver")
View Source
var ErrNoSuchImage = errors.New("No image returned")

Functions

func Build added in v0.0.8

func Build(dir, dockerfile, imageName string, secrets []string, noCache bool, progressOutput string) error

func BuildAddLabelsAndSchemaToImage added in v0.9.5

func BuildAddLabelsAndSchemaToImage(image string, labels map[string]string, bundledSchemaFile string, bundledSchemaPy string) error

func ContainerInspect added in v0.0.8

func ContainerInspect(id string) (*types.ContainerJSON, error)

func ContainerLogsFollow added in v0.0.8

func ContainerLogsFollow(containerID string, out io.Writer) error

func GetPort added in v0.7.0

func GetPort(containerID string, containerPort int) (int, error)

func ImageExists added in v0.0.14

func ImageExists(id string) (bool, error)

func ImageInspect added in v0.0.14

func ImageInspect(id string) (*types.ImageInspect, error)

func Pull

func Pull(image string) error

func Push added in v0.0.8

func Push(image string) error

func Run added in v0.0.8

func Run(options RunOptions) error

func RunDaemon added in v0.0.8

func RunDaemon(options RunOptions, stderr io.Writer) (string, error)

func RunWithIO added in v0.0.8

func RunWithIO(options RunOptions, stdin io.Reader, stdout, stderr io.Writer) error

func SaveLoginToken added in v0.0.8

func SaveLoginToken(registryHost string, username string, token string) error

func Stop added in v0.0.8

func Stop(id string) error

Types

type Port added in v0.0.8

type Port struct {
	HostPort      int
	ContainerPort int
}

type RunOptions added in v0.0.8

type RunOptions struct {
	Args    []string
	Env     []string
	GPUs    string
	Image   string
	Ports   []Port
	Volumes []Volume
	Workdir string
}

type Volume added in v0.0.8

type Volume struct {
	Source      string
	Destination string
}

Jump to

Keyboard shortcuts

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