(DockerClient client, String[] command)
| 177 | } |
| 178 | |
| 179 | public void execCommand(DockerClient client, String[] command) throws Exception { |
| 180 | ExecCreateCmdResponse resp = client.execCreateCmd(containerName).withPrivileged(true).withUser("root") |
| 181 | .withCmd(command).exec(); |
| 182 | |
| 183 | ExecResultCallback<ResultCallback<Frame>, Frame> callback = new ExecResultCallback<>(); |
| 184 | client.execStartCmd(resp.getId()).exec(callback); |
| 185 | callback.awaitCompletion(); |
| 186 | } |
| 187 | |
| 188 | public void patchContainer(DockerClient client, String localIp, String proto) { |
| 189 | try { |
no test coverage detected