docker

package
v0.8.11 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(image string, args ...Arg) error

func WithCappAdd

func WithCappAdd(capStr string) func(*dockerArgs)

func WithEnvVar

func WithEnvVar(key, value string) func(*dockerArgs)

func WithPublishedPort

func WithPublishedPort(publishedPort PublishedPort) func(*dockerArgs)

Types

type Arg

type Arg func(*dockerArgs)

type PublishedPort

type PublishedPort struct {
	ContainerPort string
	HostIP        string
	HostPort      string
}

Jump to

Keyboard shortcuts

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