docker

package
v0.0.0-...-8705ae5 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultDockerRegistry = "docker.io"

DefaultDockerRegistry is the default registry to use (Docker Hub).

View Source
const DockerfileRootDir = ".kpm"

DockerfileRootDir is the root directory to use when building or copying from a Docker image.

Variables

This section is empty.

Functions

func BuildImage

func BuildImage(imageName string, dockerfilePath string, dirToCopy string) error

BuildImage builds a new docker image by making a call to the Docker daemon.

func DeleteImage

func DeleteImage(imageName string) error

DeleteImage deletes a local Docker image.

func ExtractImageContents

func ExtractImageContents(imageName string, destinationDir string) error

ExtractImageContents extracts files and directories from a Docker image, and copies them to the local KPM repository.

func GetDockerfilePath

func GetDockerfilePath(kpmHomeDir string) string

GetDockerfilePath returns the path of the Dockerfile to use.

func GetImageName

func GetImageName(dockerRegistry string, packageName string, resolvedPackageVersion string) string

GetImageName creates a new image name based on the Docker repository, package name and resolved package version.

func GetImageNameWithoutTag

func GetImageNameWithoutTag(dockerRegistry string, packageName string) string

func PullImage

func PullImage(imageName string) error

PullImage pulls a Docker image from a remote Docker registry.

func PushImage

func PushImage(imageName string) error

PushImage pushes a Docker image to a remote Docker registry.

Types

This section is empty.

Jump to

Keyboard shortcuts

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