示例#1
0
func executeProgram(args *execdriver.InitArgs) error {
	dockerInitFct, err := execdriver.GetInitFunc(args.Driver)
	if err != nil {
		panic(err)
	}
	return dockerInitFct(args)
}
示例#2
0
func executeProgram(args *execdriver.InitArgs) error {
	setupEnv(args)
	dockerInitFct, err := execdriver.GetInitFunc(args.Driver)
	if err != nil {
		panic(err)
	}
	return dockerInitFct(args)

	if args.Driver == "lxc" {
		// Will never reach
	} else if args.Driver == "chroot" {
	}

	return nil
}