|
@@ -46,7 +46,6 @@ public class DockerExe {
|
|
|
return "No such container:"+pid;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
}
|
|
|
public static void stopDocker(String pid){
|
|
|
DockerClientConfig config = DefaultDockerClientConfig.createDefaultConfigBuilder()
|
|
@@ -68,7 +67,7 @@ public class DockerExe {
|
|
|
System.out.println("容器已停止: " + pid);
|
|
|
} catch (Exception e) {
|
|
|
System.err.println("停止容器失败: " + e.getMessage());
|
|
|
- e.printStackTrace();
|
|
|
+// e.printStackTrace();
|
|
|
}
|
|
|
}
|
|
|
public static void getDockerLogs(String pid, ResultCallback.Adapter<Frame> logsexe) throws InterruptedException {
|