commit | 90190677e4cc4377ed2e8d3b0cf086c971a49a66 | [log] [tgz] |
---|---|---|
author | Roland Grunberg <rgrunber@redhat.com> | Fri May 27 12:46:44 2016 -0400 |
committer | Jeff Johnston <jjohnstn@redhat.com> | Fri May 27 15:21:26 2016 -0400 |
tree | 6ba96151f5c6569d16f7a989dfef7dcb1b2effe9 | |
parent | 18a5caebc2ba75ff8323db367046e5f9fdb08b66 [diff] |
Bug 494776: Don't set auth credentials for daemon's default registry. When no registry account has been set, commands are expected to run against the Docker daemon's default registry in an unauthenticated manner. This removes support for matching the daemon's default registry with the first auth entry in any 'config.json' file that's discovered. Change-Id: I85cd97b5855bab9938ed85a139c118836dfee56b Reviewed-on: https://git.eclipse.org/r/73836 Tested-by: Hudson CI Reviewed-by: Jeff Johnston <jjohnstn@redhat.com>
diff --git a/containers/org.eclipse.linuxtools.docker.core/src/org/eclipse/linuxtools/internal/docker/core/DockerClientFactory.java b/containers/org.eclipse.linuxtools.docker.core/src/org/eclipse/linuxtools/internal/docker/core/DockerClientFactory.java index 8415aeb..e46742b 100644 --- a/containers/org.eclipse.linuxtools.docker.core/src/org/eclipse/linuxtools/internal/docker/core/DockerClientFactory.java +++ b/containers/org.eclipse.linuxtools.docker.core/src/org/eclipse/linuxtools/internal/docker/core/DockerClientFactory.java
@@ -91,12 +91,6 @@ if (registryAccount != null) { builder.authConfig(buildAuthentication(registryAccount)); - } else { - try { - builder.authConfig(AuthConfig.fromDockerConfig().build()); - } catch (Exception e) { - // AuthConfig can't be found, continue - } } return builder.build(); }