docker

package
v0.1.1-beta Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 License: GPL-3.0 Imports: 12 Imported by: 0

README

/pkg/docker

This directory contains all the library code that's intended to operate on docker functionalities (images/containers).

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Client

func Client() (*client.Client, error)

Client - return docker sdk client

func DeleteImage

func DeleteImage(imageID string, force, pruneChildren bool) ([]types.ImageDelete, error)

DeleteImage - Delete specified docker image

func GetContainers

func GetContainers(quiet, size, all, latest bool, since, before string, limit int) ([]types.Container, error)

GetContainers - List local docker containers

func GetImages

func GetImages(all bool, filter filters.Args) ([]types.ImageSummary, error)

GetImages - List local docker images

func LaunchContainer

func LaunchContainer(containerConfig *container.Config, hostConfig *container.HostConfig, networkingConfig *network.NetworkingConfig, containerName string) (container.ContainerCreateCreatedBody, error)

LaunchContainer - launch a conatiner

func PullImage

func PullImage(imageRef string, all bool, username, password string) error

PullImage - Pull specified docker image

Types

This section is empty.

Jump to

Keyboard shortcuts

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