dockerhelper

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDockerNetwork

func CreateDockerNetwork(client *command.MachineClient, name string) error

func ExecuteDockerCmd

func ExecuteDockerCmd(client *command.MachineClient, stdin io.Reader, stdout, stderr io.Writer, args ...string) error

func GetTraefikRouteLabel

func GetTraefikRouteLabel(domain, containerPort string) []string

func IsContainerExist

func IsContainerExist(client *command.MachineClient, name string) bool

func IsNetworkExist

func IsNetworkExist(client *command.MachineClient, name string) bool

func LocalImageSize

func LocalImageSize(name string) (int, error)

func MachineWithDocker

func MachineWithDocker(drsCli *command.Cli, machine string) (*command.MachineClient, error)

MachineWithDocker initialize the machine client and verify that all necessary components are installed

func RemoveContainer

func RemoveContainer(
	client *command.MachineClient,
	name string,
	force bool,
) error

func RemoveUnusedImages

func RemoveUnusedImages(
	client *command.MachineClient,
) error

func RenameContainer

func RenameContainer(
	client *command.MachineClient,
	name, newName string,
) error

func RunContainer

func RunContainer(
	client *command.MachineClient,
	image, name string,
	ports, volumes, labels, envs []string,
	args ...string,
) error

func SendDockerImage

func SendDockerImage(client *command.MachineClient, image string) error

func StartContainer

func StartContainer(
	client *command.MachineClient,
	name string,
) error

func StopContainer

func StopContainer(
	client *command.MachineClient,
	name string,
) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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