Documentation ¶
Overview ¶
Package dockerclient provides helper methods for creating a synthesized docker load TAR stream and loading it into the local Docker daemon.
Index ¶
Constants ¶
View Source
const DOCKER_UNIX_SOCKET = "unix:///var/run/docker.sock"
Variables ¶
This section is empty.
Functions ¶
func DockerLoad ¶
func DockerLoad(image reference.Named, manifest *schema1.SignedManifest, layerPaths map[string]string, localIp string) error
DockerLoad performs a `docker load` of the given image with its manifest and layerPaths.
func DockerLoadTar ¶
DockerLoadTar performs a `docker load` of a TAR containing the V1 docker load format.
Types ¶
type V1LayerInfo ¶
type V1LayerInfo struct {
ID string `json:"id"`
}
V1LayerInfo holds information derived from a V1 history JSON blob.
func GetLayerInfo ¶
func GetLayerInfo(layerHistory schema1.History) V1LayerInfo
GetLayerInfo returns the parsed V1 layer information for the given layer.
Click to show internal directories.
Click to hide internal directories.