docker

package
v0.0.0-...-6d8d8d4 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2019 License: Apache-2.0 Imports: 8 Imported by: 6 modules, 5 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StopDockerService

func StopDockerService() error

StopDockerService stops the docker service.

func UninstallDockerService

func UninstallDockerService(dockerRpmName string) error

UninstallDockerService remove docker package

Types

type Dockerd

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

Dockerd is a wrapper client for docker daemon.

func NewDockerd

func NewDockerd() (*Dockerd, error)

NewDockerd creates a docker client.

func (*Dockerd) ContainerInspect

func (d *Dockerd) ContainerInspect(containerID string) (types.ContainerJSON, error)

ContainerInspect returns the container information.

func (*Dockerd) ContainerList

func (d *Dockerd) ContainerList() ([]types.Container, error)

ContainerList lists all containers on host.

func (*Dockerd) ContainerStart

func (d *Dockerd) ContainerStart(containerID string) error

ContainerStart starts a container.

func (*Dockerd) ContainerStop

func (d *Dockerd) ContainerStop(containerID string, timeout *time.Duration) error

ContainerStop stops a container.

func (*Dockerd) ImageInspect

func (d *Dockerd) ImageInspect(imageID string) (types.ImageInspect, error)

ImageInspect returns the image information.

func (*Dockerd) Info

func (d *Dockerd) Info() (types.Info, error)

Info returns dockerd information.

func (*Dockerd) VolumeInspect

func (d *Dockerd) VolumeInspect(volumeID string) (types.Volume, error)

VolumeInspect get a volume info

func (*Dockerd) VolumeList

func (d *Dockerd) VolumeList() ([]*types.Volume, error)

VolumeList lists all volumes on host

Jump to

Keyboard shortcuts

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