docker

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ERROR = "\033[31m✘\033[0m"
View Source
var INFO = "\033[32m✔\033[0m"

Functions

func ContainerList

func ContainerList(cli *client.Client)

func CreaftContainer added in v0.2.2

func CreaftContainer(cli *client.Client, image string, name string, cmd []string)

func Error

func Error(types string, format string, a ...any)

func GetAllLogs added in v0.2.1

func GetAllLogs(cli *client.Client)

func GetLogs added in v0.2.1

func GetLogs(cli *client.Client, containerID string)

func NewClient

func NewClient() *client.Client

func Print

func Print(types string, format string, a ...any)

func PullImage

func PullImage(cli *client.Client, imagename string)

func RemoveContainer

func RemoveContainer(cli *client.Client, containerID string)

func StartContainer

func StartContainer(cli *client.Client, containerID string)

func StopContainer

func StopContainer(cli *client.Client, containerID string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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