docker

package
v0.0.0-...-465f591 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PullLatestImage

func PullLatestImage(image string, client *client.Client) (err error)

func RemoveContainerForcefully

func RemoveContainerForcefully(client *client.Client, ctx context.Context, containerId string) error

func RunImage

func RunImage(opts ...RunImageOption) error

func StopContainer

func StopContainer(client *client.Client, ctx context.Context, containerId string) error

func WaitForContainer

func WaitForContainer(client *client.Client, ctx context.Context, containerId string) error

Types

type RunImageOption

type RunImageOption func(opts *runImageHandler)

func OptionWithArgs

func OptionWithArgs(args []string) RunImageOption

func OptionWithAttachedOutput

func OptionWithAttachedOutput() RunImageOption

func OptionWithAutoSpawnBrowser

func OptionWithAutoSpawnBrowser() RunImageOption

func OptionWithDebug

func OptionWithDebug(isDebug bool) RunImageOption

func OptionWithExitErrorMessages

func OptionWithExitErrorMessages(messages []string) RunImageOption

func OptionWithInterrupt

func OptionWithInterrupt() RunImageOption

func OptionWithLicenseVolume

func OptionWithLicenseVolume(volumeHost string) RunImageOption

func OptionWithProgressLoader

func OptionWithProgressLoader(duringLoadMessages []string, afterLoadMessages []string) RunImageOption

func OptionWithSourceVolume

func OptionWithSourceVolume(volumeHost string) RunImageOption

func OptionWithWebPort

func OptionWithWebPort(portHost int) RunImageOption

Jump to

Keyboard shortcuts

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