func()

in mpdev/internal/resources/container_process.go [52:60]


func (cp *containerProcess) getCommand() exec.Cmd {
	args := []string{"docker", "run", "--rm", "-i"}
	for _, mount := range cp.mounts {
		args = append(args, "--mount", mount.getMount())
	}
	args = append(args, cp.containerImage)
	args = append(args, cp.processArgs...)
	return cp.executor.Command(args[0], args[1:]...)
}