docker

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2020 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runtime

type Runtime struct {
	Logger podrick.Logger
	// contains filtered or unexported fields
}

Runtime implements the Runtime interface with a Docker runtime backend.

Supported environment variables: DOCKER_HOST to set the url to the docker server. DOCKER_API_VERSION to set the version of the API to reach, leave empty for latest. DOCKER_CERT_PATH to load the TLS certificates from. DOCKER_TLS_VERIFY to enable or disable TLS verification, off by default.

func (Runtime) Close

func (Runtime) Close(context.Context) error

Close releases the resources of the Runtime.

func (*Runtime) Connect

func (r *Runtime) Connect(ctx context.Context) error

Connect connects to the Docker API.

func (*Runtime) StartContainer

func (r *Runtime) StartContainer(ctx context.Context, conf *podrick.ContainerConfig) (podrick.Container, error)

StartContainer starts a container with Docker as the backing runtime.

Jump to

Keyboard shortcuts

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