Help us shape the future of Go! Take the 2026 Go Developer Survey

dockerimage

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package dockerimage shares native Engine image pulls between hosts.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ensure

func Ensure(ctx context.Context, cli *dockerclient.Client, ref string, auth RegistryAuth, out io.Writer) error

Ensure pulls an image only when the Engine reports it missing.

func Pull

func Pull(ctx context.Context, cli *dockerclient.Client, ref string, auth RegistryAuth, out io.Writer) error

Pull consumes the complete Engine pull stream, including stream errors.

Types

type Config

type Config struct {
	Labels          map[string]string
	Entrypoint, Cmd []string
}

func InspectConfig

func InspectConfig(ctx context.Context, cli *dockerclient.Client, ref, platform string, auth RegistryAuth, out io.Writer) (*Config, error)

InspectConfig follows upstream inspectDockerImage: local, registry, then pull with five attempts at one-second intervals and inspect locally again.

type RegistryAuth

type RegistryAuth interface{ EngineAuth(string) (string, error) }

Jump to

Keyboard shortcuts

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