/** * @param container * @throws DockerJSONException */ public void createContainer(DockerContainer container) throws DockerJSONException { try { logger.info("The client attempts to create a container..."); DockerResponse dockerResponse = driver.create(container); handleDockerAPIError(dockerResponse); } catch (FatalDockerJSONException e) { throw new DockerJSONException(e.getMessage(), e); } }
/** * @param container * @throws DockerJSONException */ public void createContainer(DockerContainer container) throws DockerJSONException { try { logger.info("The client attempts to create a container..."); DockerResponse dockerResponse = driver.create(container); handleDockerAPIError(dockerResponse); } catch (FatalDockerJSONException e) { throw new DockerJSONException(e.getMessage(), e); } }
/** * @param container * @param host * @throws DockerJSONException */ public void createContainer(DockerContainer container, String host) throws DockerJSONException { try { logger.info("The client attempts to create a container..."); DockerResponse dockerResponse = driver.create(container); handleDockerAPIError(dockerResponse); } catch (FatalDockerJSONException e) { throw new DockerJSONException(e.getMessage(), e); } }
/** * @param container * @param host * @throws DockerJSONException */ public void createContainer(DockerContainer container, String host) throws DockerJSONException { try { logger.info("The client attempts to create a container..."); DockerResponse dockerResponse = driver.create(container); handleDockerAPIError(dockerResponse); } catch (FatalDockerJSONException e) { throw new DockerJSONException(e.getMessage(), e); } }