docker

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDockerAvailable

func IsDockerAvailable() (bool, error)

IsDockerAvailable performs an 'info' call to the docker server to see if it is available Returns true if it is, otherwise returns false and the error message

func IsInDocker

func IsInDocker() bool

IsInDocker return true if currently running in a container, false otherwise No clear consensus on how to do this so it may need to change in the future

func NewClient

func NewClient() (*docker.Client, error)

NewClient returns a new Docker client

Types

This section is empty.

Jump to

Keyboard shortcuts

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