@Test
public void testLaunchContainer() throws IOException {

  if (!shouldRun()) {
    LOG.warn("Docker not installed, aborting test.");
    return;
  }
  Map<String, String> env = new HashMap<String, String>();
  env.put(YarnConfiguration.NM_DOCKER_CONTAINER_EXECUTOR_IMAGE_NAME, testImage);
  String touchFileName = "touch-file-" + System.currentTimeMillis();
  File touchFile = new File(dirsHandler.getLocalDirs().get(0), touchFileName);
  ContainerId cId = getNextContainerId();
  int ret = runAndBlock(
      cId, env, "touch", touchFile.getAbsolutePath(), "&&", "cp", touchFile.getAbsolutePath(), "/");
  assertEquals(0, ret);
}