dockutil

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetachedExec

func DetachedExec(cntName, cmd string, args ...string) *exec.Cmd

func DetachedExecDir added in v1.1.0

func DetachedExecDir(cntName, dir, cmd string, args ...string) *exec.Cmd

func DurationPtr

func DurationPtr(dur time.Duration) *time.Duration

func Exec

func Exec(cntName, cmd string, args ...string) *exec.Cmd

func ExecDir added in v1.1.0

func ExecDir(cntName, dir, cmd string, args ...string) *exec.Cmd

func ExecEnv

func ExecEnv(cntName string, envs []string, cmd string, args ...string) *exec.Cmd

func ExecTTY

func ExecTTY(cntName, dir, cmd string, args ...string) *exec.Cmd

func FmtExec

func FmtExec(cntName, cmdFmt string, args ...interface{}) *exec.Cmd

func StopRemove

func StopRemove(ctx context.Context, cli *client.Client, cntName string) error

StopRemove stops a container and then removes it. It is an equivalent to `docker rm -f`.

Types

This section is empty.

Jump to

Keyboard shortcuts

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