container

module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2020 License: MIT

README

Container

Provides utilities and builders for working with containers in a local Docker engine.

Runner

The runner allows you to easily run containers on your local machine.

// This context is used for starting and stopping the container
ctx := context.Background()

// Create a new runner
runner := NewContainerRunner().
		WithName("mongo").
		WithImage("mongo").
		WithPorts(27017)

// Start the container
err := runner.Start(ctx)

// Stop the container
err := runner.Stop(ctx)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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