docker

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DockerClient

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

DockerClient represents a Docker client with synchronization support.

func NewDockerClient

func NewDockerClient() (*DockerClient, error)

NewDockerClient creates and returns a new Docker client.

func (*DockerClient) CreateContainer

func (dc *DockerClient) CreateContainer(image string, portMappings map[string]string, envVars map[string]string, volumes map[string]string) (string, error)

CreateContainer creates and starts a new Docker container.

func (*DockerClient) RemoveContainer

func (dc *DockerClient) RemoveContainer(containerID string) error

RemoveContainer removes a stopped Docker container by its ID.

func (*DockerClient) StopContainer

func (dc *DockerClient) StopContainer(containerID string) error

StopContainer stops a running Docker container by its ID.

Jump to

Keyboard shortcuts

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