run

package
v0.0.0-...-34c65b8 Latest Latest
Warning

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

Go to latest
Published: May 17, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package run creates and starts a sandbox container, then reports the host port that Docker assigned to the published container port.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	ContainerID string
	Name        string
	HostPort    int
	Binds       []string // resolved bind specs (source:target[:ro]) passed to the daemon
}

Result describes a successfully started sandbox.

func Start

func Start(ctx context.Context, cli *client.Client, cfg *config.Config, image, name string) (*Result, error)

Start creates and starts a container named name running image.

Jump to

Keyboard shortcuts

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