docker

package
v0.7.7 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientOpts added in v0.7.7

func ClientOpts() ([]client.Opt, error)

ClientOpts returns an appropiate slice of client.Opt values for connecting to a Docker client. It can support using SSH connections via the Docker CLI's connection helpers if the DOCKER_HOST environment variable is an SSH url, otherwise it will return client.FromEnv for a standard connection. This function returns an error if DOCKER_HOST is an invalid URL.

func GetHostEnv

func GetHostEnv() string

func IsLocalHost

func IsLocalHost(dockerHost string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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