docker

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientFromEnv

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

func ForceDeleteContainer

func ForceDeleteContainer(ctx context.Context, containerID string) error

func ReadFileFromContainer

func ReadFileFromContainer(ctx context.Context, containerID, fPath string) (string, error)

func RetagAndPushImage

func RetagAndPushImage(
	ctx context.Context,
	srcImage, destImage string,
	pullUsername, pullPassword string,
	pushUsername, pushPassword string,
) error

func RunContainerInBackground

func RunContainerInBackground(
	ctx context.Context,
	containerName string,
	containerCfg *container.Config,
	hostCfg *container.HostConfig,
	pullUsername, pullPassword string,
) (types.ContainerJSON, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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