MCPcopy Create free account
hub / github.com/DeNA/PacketProxy / execCommand

Method execCommand

src/main/java/core/packetproxy/OpenVPN.java:179–186  ·  view source on GitHub ↗
(DockerClient client, String[] command)

Source from the content-addressed store, hash-verified

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 {

Callers 1

patchContainerMethod · 0.95

Calls 2

awaitCompletionMethod · 0.95
getIdMethod · 0.65

Tested by

no test coverage detected