Skip to content

clarkmcc/container

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

Provides utilities and builders for working with a local Docker engine

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages