docker

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 18 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) (*network.Inspect, error)

func NetworkDisconnect

func NetworkDisconnect(networkID, containerID string) error

func NetworkInspect

func NetworkInspect(name string) (*network.Inspect, error)

func NetworkRemove added in v1.12.0

func NetworkRemove(networkID string) error

Types

type ErrNonZeroExitCode

type ErrNonZeroExitCode struct {
	Cmd      []string
	ExitCode int
}

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