docker

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainerExec

func ContainerExec(image string, entrypoint string, commandShell string, command string, mounts []ContainerMount, workingdir string, environment []string, publish []string)

*

  • ContainerExec runs a container and attaches the result to the current session

func IsCIEnvironment

func IsCIEnvironment() bool

*

  • Is CI Environment

func IsDockerNative

func IsDockerNative() bool

*

  • Detect Docker native

func IsDockerToolbox

func IsDockerToolbox() bool

*

  • Detect Docker Toolbox

func RunDockerCommand

func RunDockerCommand(command string)

*

  • RunDockerCommand executes a docker command and wrap's it for docker machine if needed

Types

type ContainerMount

type ContainerMount struct {

	/**
	 * Mount Type
	 */
	MountType string

	/**
	 * Source Directory (Host) / Source Volume
	 */
	Source string

	/**
	 * Target Directory (Container)
	 */
	Target string
}

Jump to

Keyboard shortcuts

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