Tag: 沙盒

在osx上运行docker内bazeltestingenv

试图运行在ProcessBuilder运行java_test 。 简化testing的代码如下: @Test public void testDockerExecutable(){ System.out.println("======== running docker =============="); try { Process p = new ProcessBuilder("docker","version") .inheritIO() .start(); } catch (IOException e) { e.printStackTrace(); throw new RuntimeException(e); } } 从shell直接运行docker version给出了输出: Client: Version: 17.03.1-ce API version: 1.27 Go version: go1.7.5 Git commit: c6d412e Built: Tue Mar 28 00:40:02 2017 OS/Arch: darwin/amd64 Server: Version: […]