docker

package
v0.0.0-...-430dc37 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDockerClient

func NewDockerClient() (_type.ContainerClient, error)

NewDockerClient initialises the docker daemon client. It returns an error instead of panicking so the caller can fail gracefully.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client wraps the docker SDK client.

func (*Client) CommitImageFromSelf

func (c *Client) CommitImageFromSelf(ctx context.Context, containerID, image string) error

CommitImageFromSelf commits the live container into a new image reference.

func (*Client) PushImageFromSelf

func (c *Client) PushImageFromSelf(ctx context.Context, imageName, username, password string) error

PushImageFromSelf pushes the named image to its remote registry.

Jump to

Keyboard shortcuts

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