host

package
v3.10.32-1+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package host contains a utility to run commands on the Docker host by using an image in privileged mode.

Create an HostHelper with NewHostHelper

Index

Constants

View Source
const (

	// RemoteHostOriginDir is a directory on the remote machine that runs Docker
	RemoteHostOriginDir = "/var/lib/origin/cluster-up"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HostHelper

type HostHelper struct {
	// contains filtered or unexported fields
}

HostHelper contains methods to help check settings on a Docker host machine using a privileged container

func NewHostHelper

func NewHostHelper(dockerHelper *dockerhelper.Helper, image string) *HostHelper

NewHostHelper creates a new HostHelper

func (*HostHelper) CanUseNsenterMounter

func (h *HostHelper) CanUseNsenterMounter() (bool, error)

CanUseNsenterMounter returns true if the Docker host machine can execute findmnt through nsenter

func (*HostHelper) EnsureVolumeUseShareMount

func (h *HostHelper) EnsureVolumeUseShareMount(volumesDir string) error

EnsureVolumeUseShareMount ensures that the host Docker VM has a shared directory that can be used for OpenShift volumes. This is needed for Docker for Mac.

Jump to

Keyboard shortcuts

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