// Starts a bundle by running 'runc' in the bundle directory
Starts a bundle by running 'runc' in the bundle directory
// Starts a bundle by running ' runc ' in the bundle directory
func (r *RunRunc) Start(bundlePath, id string, io garden.ProcessIO) (garden.Process, error) {
	mlog := plog.Start("start", lager.Data{"bundle": bundlePath})
	cmd := r.runc.StartCommand(bundlePath, id)
	process, err := r.tracker.Run(r.pidGenerator.Generate(), cmd, io, nil, nil)
	if err != nil {
		return nil, mlog.Err("run", err)
	}
	mlog.Info("started")
	return process, nil
}
func ( r * RunRunc ) Start ( bundlePath , id string , io garden . ProcessIO ) ( garden . Process , error ) { mlog := plog . Start ( " " , lager . Data { " " : bundlePath } ) cmd := r . runc . StartCommand ( bundlePath , id ) process , err := r . tracker . Run ( r . pidGenerator . Generate ( ) , cmd , io , nil , nil ) if err != nil { return nil , mlog . Err ( " " , err ) } mlog . Info ( " " ) return process , nil }
Starts a bundle by running 'runc' in the bundle directory
Starts a bundle by running ' runc ' in the bundle directory