docker

package
v0.0.0-...-d596df2 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Composerize

func Composerize(dockerRunCommand string) string

Transform docker run command into docker-compose.yml using composerize in a subprocess First line will be a comment followed by the docker run command. Caller sanitizes input returns stdout as stirng

func Lines

func Lines(in string) []string

Types

type Container

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

func (Container) Runlike

func (container Container) Runlike() string

Execute "runlike" locally in a subprocess Returns docker run command (stdout as string)

type DockerInstance

type DockerInstance struct {
	Session ssh.Session
}

func (DockerInstance) ComposerizeByIdOrName

func (instance DockerInstance) ComposerizeByIdOrName(idOrName string)

func (DockerInstance) GetContainerIds

func (instance DockerInstance) GetContainerIds() []string

func (DockerInstance) Inspect

func (instance DockerInstance) Inspect(containerIdOrName string) Container

func (DockerInstance) ListById

func (instance DockerInstance) ListById()

func (DockerInstance) ListByName

func (instance DockerInstance) ListByName()

Jump to

Keyboard shortcuts

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