dockerutils

package
v0.0.0-...-009dd65 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NarrowAuthSearch

func NarrowAuthSearch(repo string, auths *docker.AuthConfigurations) []docker.AuthConfiguration

NarrowAuthSearch - Narrows down auth search

func TryImagePull

func TryImagePull(client *docker.Client, image string) error

TryImagePull - Attempts to pull an image

Types

type DockerCommander

type DockerCommander struct {
	Client *docker.Client
	Image  string
}

DockerCommander - A high level docker interface

func NewCommander

func NewCommander(client *docker.Client, image string) *DockerCommander

func (*DockerCommander) Run

func (dc *DockerCommander) Run()

type DockerCommanderRunOptions

type DockerCommanderRunOptions struct {
	// Overrides the command
	Cmd string

	// Which ports to bind to the host in the form HOST:CONTAINER
	Ports []string

	// Which ports to expose
	Expose []int

	// Volumes to bind
	Binds []string

	// Named volumes to ensure exist
	EnsureNamedVolumes []string
}

Jump to

Keyboard shortcuts

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