docker

package
v1.11.13 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const MTU = 1500

Variables

This section is empty.

Functions

func ContainerCreate

func ContainerCreate(name, image, networkName string, cmd []string) (*types.ContainerJSON, error)

func ContainerInspect

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

func ContainerList

func ContainerList(filters map[string][]string) ([]types.Container, error)

func ContainerRemove

func ContainerRemove(id string) error

func Exec

func Exec(id string, env []string, cmd ...string) (stdout, stderr []byte, err error)

func NetworkConnect

func NetworkConnect(networkID, containerID string) error

func NetworkCreate

func NetworkCreate(name string, ipv6, skipIfExists bool) (*types.NetworkResource, error)

func NetworkDisconnect

func NetworkDisconnect(networkID, containerID string) error

func NetworkInspect

func NetworkInspect(name string) (*types.NetworkResource, error)

Types

type ErrNonZeroExitCode

type ErrNonZeroExitCode struct {
	// contains filtered or unexported fields
}

func (ErrNonZeroExitCode) Error

func (e ErrNonZeroExitCode) Error() string

Jump to

Keyboard shortcuts

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