for (String command : commands) {
LOG.info("Running command: [{}]", command);
CreateContainerResponse container = dockerClient.createContainerCmd("busybox").withCmd(commands).exec();
dockerClient.startContainerCmd(container.getId());
int exitcode = dockerClient.waitContainerCmd(container.getId()).exec(new WaitContainerResultCallback())
.awaitStatusCode();
assertThat(exitcode, equalTo(0));
}
The loop:
Seems to be executing commands rather than command -- is this correct?