Documentation
¶
Index ¶
- Constants
- func ExecContainer(containerNameOrID string, cmdArgs []string)
- func Execute()
- func NewParentProcess(tty bool, volumeURLs, envs []string, containerID string) (*exec.Cmd, *os.File)
- func Run(tty, rm bool, cmdArgs []string, res *subsystems.ResourceConfig, ...)
- func RunContainerInitProcess() error
Constants ¶
View Source
const ( EnvExecPID = "mydocker_pid" EnvExecCMD = "mydocker_cmd" )
Variables ¶
This section is empty.
Functions ¶
func ExecContainer ¶
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.
Click to show internal directories.
Click to hide internal directories.