> +* Ensure you are using a recent JDK 6 > +* Setup your project to include `docker` > + * Get the dependency `org.jclouds.labs/docker` using jclouds > [Installation](/start/install). > +* Start coding > + > +{% highlight java %} > +// get a context with docker that offers the portable ComputeService api > +ComputeServiceContext context = ContextBuilder.newBuilder("docker") > + .credentials(email, password) > + .modules(ImmutableSet.<Module> of(new > Log4JLoggingModule(), > + new > SshjSshClientModule())) > + .buildView(ComputeServiceContext.class); > +ComputeService client = context.getComputeService(); > + > +String sshableImageId = "your-sshable-image-id"; // this can be obtained > using `docker images --no-trunc` command > +Template template = client.templateBuilder().imageId(sshableImageId).build()
Missing `;` at the end. --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-site/pull/110/files#r14639919