docker

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Overview

Package docker is the v1 sandbox backend: one disposable container per session, driven over the Docker Engine API. The image must carry /bin/bash at that exact path (the plan's image contract) and a POSIX userland.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Host string
}

Config configures the backend. Host is a Docker daemon address (unix:///... or tcp://host:port); empty falls back to DOCKER_HOST and then to the well-known socket.

type Provider

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

Provider provisions per-session containers.

func New

func New(cfg Config) (*Provider, error)

func (*Provider) Provision

func (p *Provider) Provision(ctx context.Context, spec sandbox.Spec) (sandbox.Sandbox, error)

Provision returns the session's container, creating and starting it only if none exists. Two executors racing on the same session converge: the loser of the create race adopts the winner's container.

Jump to

Keyboard shortcuts

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