String[] arguments = new String[]{"sh","-c","docker","load" ,"<",newPath+"&"}; Process res = Runtime.getRuntime().exec(arguments); res.waitFor();
在指令末尾加上&