docker

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2018 License: LGPL-3.0 Imports: 31 Imported by: ? modules, 0 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

This section is empty.

Types

type DockerContainer

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

func (*DockerContainer) CopyFrom

func (dc *DockerContainer) CopyFrom(src, dest string) error

func (*DockerContainer) CopyTo

func (dc *DockerContainer) CopyTo(src, dest string) error

func (*DockerContainer) GetLogger

func (dc *DockerContainer) GetLogger() *log.Entry

func (*DockerContainer) IsRunning

func (dc *DockerContainer) IsRunning() (bool, error)

func (*DockerContainer) Remove

func (dc *DockerContainer) Remove() error

func (*DockerContainer) Start

func (dc *DockerContainer) Start() error

func (*DockerContainer) Stop

func (dc *DockerContainer) Stop(timeout time.Duration) error

func (*DockerContainer) Wait

func (dc *DockerContainer) Wait(dumpLog bool) (int, error)

type DockerManager

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

func NewDockerManager

func NewDockerManager() (*DockerManager, error)

func NewDockerManagerWithContext

func NewDockerManagerWithContext(ctx context.Context) (*DockerManager, error)

func (*DockerManager) ContainerCreate

func (dm *DockerManager) ContainerCreate(config contman.Config) (contman.Container, error)

func (*DockerManager) GetSystemMounts

func (dm *DockerManager) GetSystemMounts() []contman.Mount

func (*DockerManager) HasImage

func (dm *DockerManager) HasImage(image string) bool

func (*DockerManager) PullImage

func (dm *DockerManager) PullImage(image string) error

func (*DockerManager) RunCommand

func (d *DockerManager) RunCommand(containerName string, command []string) error

Jump to

Keyboard shortcuts

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