docker

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 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, autoRestart bool) (string, error)

StartNewContainer - 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

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