dockerBuild

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2023 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Overview

dockerBuild provides functions to build Docker images using the Docker SDK.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ImageBuild

func ImageBuild(dockerClient *client.Client, srcPath, imageName string) error

ImageBuild, uses the docker client specified to build an image out of the files that happen to be on the path specified by srcPath. The specified path should have a Dockerfile and all other files required to build the image. It names the created image as 'imageName'. If the specified path does not exist or does not contain a Dockerfile, ImageBuild will return an error.

Types

type ErrorDetail

type ErrorDetail struct {
	Message string `json:"message"`
}

type ErrorLine

type ErrorLine struct {
	Error       string      `json:"error"`
	ErrorDetail ErrorDetail `json:"errorDetail"`
}

Jump to

Keyboard shortcuts

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