Skip to content

Commit

Permalink
JENKINS-41059 update docker-java
Browse files Browse the repository at this point in the history
  • Loading branch information
Sébastien GLON committed Jan 19, 2017
1 parent c8b1f06 commit b0411c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -341,7 +341,7 @@
<dependency>
<groupId>com.github.docker-java</groupId>
<artifactId>docker-java</artifactId>
<version>3.0.0</version>
<version>3.0.6</version>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
Expand Down
Expand Up @@ -5,6 +5,7 @@
import com.github.dockerjava.api.model.AuthConfig;
import com.github.dockerjava.core.DockerClientBuilder;
import com.github.dockerjava.core.DockerClientConfig;
import com.github.dockerjava.core.DefaultDockerClientConfig;
import com.github.dockerjava.core.command.PullImageResultCallback;
import com.github.dockerjava.core.command.PushImageResultCallback;
import com.google.common.base.Charsets;
Expand Down Expand Up @@ -299,7 +300,7 @@ private static DockerClient getDockerClient(String host) {
return DockerClientBuilder.getInstance().build();
}

DockerClientConfig config = DockerClientConfig.createDefaultConfigBuilder()
DockerClientConfig config = DefaultDockerClientConfig.createDefaultConfigBuilder()
.withDockerHost(host)
.build();
return DockerClientBuilder.getInstance(config).build();
Expand Down

0 comments on commit b0411c3

Please sign in to comment.