docker

package
v0.0.0-...-ddc7402 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2017 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrLocalMachine = errors.New("running on local machine, no need to sync application files")
)

Functions

This section is empty.

Types

type Docker

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

Docker represents a docker client.

func NewDocker

func NewDocker(config config.Docker) (*Docker, error)

NewDocker creates a new docker client.

func (*Docker) Host

func (d *Docker) Host() string

Host will return the docker host that is used.

func (*Docker) Prune

func (d *Docker) Prune() error

Prune removes all unused containers, volumes, networks and images (both dangling and unreferenced).

func (*Docker) RemoveContainer

func (d *Docker) RemoveContainer(name string) error

func (*Docker) StartProxyContainer

func (d *Docker) StartProxyContainer() error

StartProxyContainer will start the proxy container.

func (*Docker) Sync

func (d *Docker) Sync() error

Sync application files with docker machine.

Jump to

Keyboard shortcuts

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