Documentation ¶
Index ¶
- Constants
- func ContainerCreate(name, image, networkName string, cmd []string) (*types.ContainerJSON, error)
- func ContainerInspect(id string) (*types.ContainerJSON, error)
- func ContainerList(filters map[string][]string) ([]types.Container, error)
- func ContainerRemove(id string) error
- func Exec(id string, env []string, cmd ...string) (stdout, stderr []byte, err error)
- func NetworkConnect(networkID, containerID string) error
- func NetworkCreate(name string, ipv6, skipIfExists bool) (*types.NetworkResource, error)
- func NetworkDisconnect(networkID, containerID string) error
- func NetworkInspect(name string) (*types.NetworkResource, error)
- func NetworkRemove(networkID string) error
- type ErrNonZeroExitCode
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 ContainerRemove ¶
func NetworkConnect ¶
func NetworkCreate ¶
func NetworkCreate(name string, ipv6, skipIfExists bool) (*types.NetworkResource, error)
func NetworkDisconnect ¶
func NetworkInspect ¶
func NetworkInspect(name string) (*types.NetworkResource, error)
func NetworkRemove ¶ added in v1.12.0
Types ¶
type ErrNonZeroExitCode ¶
type ErrNonZeroExitCode struct {
// contains filtered or unexported fields
}
func (ErrNonZeroExitCode) Error ¶
func (e ErrNonZeroExitCode) Error() string
Click to show internal directories.
Click to hide internal directories.