commands

package
v0.0.0-...-976313a Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2020 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvExecPID = "mydocker_pid"
	EnvExecCMD = "mydocker_cmd"
)

Variables

This section is empty.

Functions

func ExecContainer

func ExecContainer(containerNameOrID string, cmdArgs []string)

func Execute

func Execute()

func NewParentProcess

func NewParentProcess(tty bool, volumeURLs, envs []string, containerID string) (*exec.Cmd, *os.File)

NewParentProcess fork a new process and pass command and args to new process

func Run

func Run(tty, rm bool, cmdArgs []string, res *subsystems.ResourceConfig, volumeURLs, envs []string, containerName string)

Run fork a new process to start container

func RunContainerInitProcess

func RunContainerInitProcess() error

RunContainerInitProcess run container(child process)

Types

This section is empty.

Jump to

Keyboard shortcuts

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