simpledocker

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: BSD-3-Clause Imports: 8 Imported by: 0

README

Go wrap for the simple creating and deleting the docker container.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SimpleContainer

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

func CreateContainer

func CreateContainer(
	name string,
	image string,
	publish []string,
	env map[string]string,
) (*SimpleContainer, error)

publish - "2222:22", "127.0.0.1:80:8080"

func (*SimpleContainer) Remove

func (sc *SimpleContainer) Remove() error

func (*SimpleContainer) Stop

func (sc *SimpleContainer) Stop() error

Jump to

Keyboard shortcuts

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