Package com.spotify.docker.client

Examples of com.spotify.docker.client.DockerTimeoutException


  }

  private void pullImage(final String image) throws DockerException, InterruptedException {
    listener.pulling();

    DockerTimeoutException wasTimeout = null;
    // Attempt to pull.  Failure, while less than ideal, is ok.
    try {
      docker.pull(image);
    } catch (DockerTimeoutException e) {
      log.warn("Pulling image {} failed with timeout", image, e);
View Full Code Here


    }
  }

  @Test
  public void testPullTimeoutVariation() throws Throwable {
    doThrow(new DockerTimeoutException("x", new URI("http://example.com"), null))
        .when(mockDocker).pull(IMAGE);

    doThrow(new ImageNotFoundException("not found"))
        .when(mockDocker).inspectImage(IMAGE);
View Full Code Here

TOP

Related Classes of com.spotify.docker.client.DockerTimeoutException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.