docker

package
v0.18.2 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: AGPL-3.0 Imports: 14 Imported by: 0

README

Common/Docker package

This package is a helper that wraps common functionalities around docker usage.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartNewContainer

func StartNewContainer(containerName, image string, cmds []string, ports []int, envs, devices, volumes map[string]string) (string, error)

volumes is a map from volume name to dir name it will have within the container. If a volume doesn't exist this will create it.

func StopAndRemove added in v0.11.0

func StopAndRemove(containerName string) error

func WaitForContainerToFinish

func WaitForContainerToFinish(containerID string, timeout time.Duration) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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