You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jclouds.apache.org by "Josef Cacek (JIRA)" <ji...@apache.org> on 2016/05/31 11:42:12 UTC

[jira] [Created] (JCLOUDS-1119) Credentials for Docker provider should not be mandatory

Josef Cacek created JCLOUDS-1119:
------------------------------------

             Summary: Credentials for Docker provider should not be mandatory
                 Key: JCLOUDS-1119
                 URL: https://issues.apache.org/jira/browse/JCLOUDS-1119
             Project: jclouds
          Issue Type: Bug
          Components: jclouds-labs
            Reporter: Josef Cacek


The credentials for the Docker provider should be optional.

They only confuse users who use plain TCP Docker connection (without TLS). Such users have to currently fill-in values which are not paths to regular files on their filesystem. 

If the credentials configuration is omitted, then `NoSuchElementException` is thrown:

{code}
java.util.NoSuchElementException: property docker.identity not present in properties: [jclouds.user-threads, jclouds.template, docker.cacert.path, jclouds.max-session-failures, jclouds.image.login-user, jclouds.max-connection-reuse, jclouds.endpoint, jclouds.connection-close-header, jclouds.scheduler-threads, jclouds.build-version, docker.cacert.data, jclouds.iso3166-codes, jclouds.so-timeout, jclouds.max-connections-per-host, jclouds.max-connections-per-context, jclouds.strip-expect-header, jclouds.api, jclouds.max-parallel-deletes, jclouds.api-version, jclouds.payloads.pretty-print, jclouds.connection-timeout, jclouds.provider, jclouds.session-interval]
	at org.jclouds.ContextBuilder.searchPropertiesForProviderScopedProperty(ContextBuilder.java:292)
	at org.jclouds.ContextBuilder.resolveProperties(ContextBuilder.java:412)
	at org.jclouds.ContextBuilder.buildInjector(ContextBuilder.java:315)
	...
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)