> + > + @Inject > + public DockerComputeServiceAdapter(DockerApi api, ApiContext<DockerApi> > context) { > + this.api = checkNotNull(api, "api"); > + this.context = context; > + } > + > + @Override > + public NodeAndInitialCredentials<Container> > createNodeWithGroupEncodedIntoName(String group, String name, > + > Template template) { > + checkNotNull(template, "template was null"); > + checkNotNull(template.getOptions(), "template options was null"); > + > + String imageId = checkNotNull(template.getImage().getId(), "template > image id must not be null"); > + String defaultIdentity = > context.getProviderMetadata().getApiMetadata().getDefaultIdentity().get(); > + String defaultCredential = > context.getProviderMetadata().getApiMetadata().getDefaultCredential().get();
This default identity and credentials defined in the metadata are supposed to be the "api" credentials, not the ones to connect to the containers. Default credentials for deploiyed nodes can be set with the [IMAGE_LOGIN_USER](https://github.com/jclouds/jclouds/blob/master/compute/src/main/java/org/jclouds/compute/config/ComputeServiceProperties.java#L87) property, in the metadata detault properties. --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs/pull/57/files#r10839513