docker

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Docker

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

Docker manage container

func CreateClient

func CreateClient(ctx context.Context) (*Docker, error)

CreateClient create a docker instance

func (*Docker) Deploy

func (d *Docker) Deploy(ctx context.Context, workdir string, name string, ports []int32) error

Deploy create a Docker container from given image, and bind the constants.FxContainerExposePort to given port

func (*Docker) Destroy

func (d *Docker) Destroy(ctx context.Context, name string) error

Destroy stop and remove container

func (*Docker) GetStatus

func (d *Docker) GetStatus(ctx context.Context, name string) error

GetStatus get status of container

func (*Docker) Update

func (d *Docker) Update(ctx context.Context, name string) error

Update a container

Jump to

Keyboard shortcuts

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