docker

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetContainerList

func GetContainerList(opts *Options) ([]dtypes.Container, error)

GetContainerList returns a list of running docker containers, filter by network if networkID passed.

func GetNetworkID

func GetNetworkID(ctx context.Context, cli *client.Client, network string) (string, error)

GetNetworkID returns the an ID that match a network name.

func ParseComposeFile

func ParseComposeFile(r io.Reader, projectName string) ([]string, error)

ParseComposeFile returns a list of containers from a docker-compose.yml file.

Types

type Options

type Options struct {
	Domain      string
	Network     string
	NetworkID   string
	ComposeFile io.Reader
	ProjectName string
	KeepPrefix  bool
	Cli         *client.Client
}

Options contains parameters to sync with docker and docker-compose.

Jump to

Keyboard shortcuts

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