Example #1
0
func executeProgram(args *execdriver.InitArgs) error {
	dockerInitFct, err := execdriver.GetInitFunc(args.Driver)
	if err != nil {
		panic(err)
	}
	return dockerInitFct(args)
}
Example #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
}