docker

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2023 License: Apache-2.0 Imports: 14 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 PushImageToDifferentRegistry

func PushImageToDifferentRegistry(
	ctx context.Context,
	srcImage, destRegistry string,
	pullUsername, pullPassword string,
) error

func ReadFileFromContainer

func ReadFileFromContainer(ctx context.Context, containerID, fPath string) (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