> +
> +   @Inject
> +   public DockerComputeServiceAdapter(DockerApi api) {
> +      this.api = checkNotNull(api, "api");
> +   }
> +
> +   @Override
> +   public NodeAndInitialCredentials<Container> 
> createNodeWithGroupEncodedIntoName(String group, String name,
> +                                                                             
>      Template template) {
> +      checkNotNull(template, "template was null");
> +      checkNotNull(template.getOptions(), "template options was null");
> +      DockerTemplateOptions templateOptions = 
> DockerTemplateOptions.class.cast(template.getOptions());
> +
> +      String imageId = checkNotNull(template.getImage().getId(), "template 
> image id must not be null");
> +      String loginUser = 
> template.getImage().getDefaultCredentials().getUser();
> +      String loginUserPassword = 
> template.getImage().getDefaultCredentials().getPassword();

Where are the credentials set? The `ImageToImage` does not set them. Is this 
going to throw a NPE?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/57/files#r12937125

Reply via email to