docker

package
v2.19.0-alpha.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(ctx context.Context, log *zap.SugaredLogger, image string, dst string, src string) error

Copy copies the content from a directory out of the container onto the host system

func DownloadImage

func DownloadImage(ctx context.Context, log *zap.SugaredLogger, dryRun bool, image string) error

DownloadImage invokes the Docker CLI and pulls an image

func DownloadImages

func DownloadImages(ctx context.Context, log *zap.SugaredLogger, dryRun bool, images []string) error

DownloadImages pulls all given images using the Docker CLI Invokes DownloadImage for actual pulling

func PushImage

func PushImage(ctx context.Context, log *zap.SugaredLogger, dryRun bool, image string) error

PushImage invokes the Docker CLI and pushes the given image

func PushImages

func PushImages(ctx context.Context, log *zap.SugaredLogger, dryRun bool, images []string) error

PushImages pushes all given images using the Docker CLI Invokes PushImage for actual pushing

func RetagImage

func RetagImage(ctx context.Context, log *zap.SugaredLogger, dryRun bool, sourceImage, registry string) (string, error)

RetagImage invokes the Docker CLI and tags the given image so it belongs to the given registry.

func RetagImages

func RetagImages(ctx context.Context, log *zap.SugaredLogger, dryRun bool, images []string, registry string) ([]string, error)

RetagImages invokes the Docker CLI and tags the given images so they belongs to the given registry. Invokes RetagImage for actual tagging

Types

This section is empty.

Jump to

Keyboard shortcuts

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