docker

package
v0.8.15 Latest Latest
Warning

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

Go to latest
Published: May 20, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateNetwork added in v0.8.12

func CreateNetwork(name string) (string, error)

func GetContainer added in v0.8.12

func GetContainer(containerName string) (*types.Container, error)

func Run

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

func WithCappAdd

func WithCappAdd(capStr string) func(*dockerArgs)

func WithCredentials added in v0.8.12

func WithCredentials(credentials *types.AuthConfig) func(*dockerArgs)

func WithEntrypoint added in v0.8.12

func WithEntrypoint(entrypoint []string) func(*dockerArgs)

func WithEnvVar

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

func WithNetwork added in v0.8.12

func WithNetwork(networkName 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