Skip to content

Commit

Permalink
Merge pull request #59 from Jotschi/master
Browse files Browse the repository at this point in the history
Update readme to include corrected api example
  • Loading branch information
marcuslinke committed Sep 22, 2014
2 parents c10637a + ddaf529 commit 746a2b8
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,14 @@ There are three ways to configure, in descending order of precedence:
##### Programatic:
In your application, e.g.

DockerClientConfig config = DockerClientConfig.createDefaultConfigBuilder();
config.withVersion("1.14");
config.withUsername("dockeruser");
config.withPassword("ilovedocker");
config.withEmail("dockeruser@github.com");
DockerClient docker = DockerClientBuilder.getInstance( config ).build();
DockerClientConfigBuilder configBuilder = DockerClientConfig.createDefaultConfigBuilder();
configBuilder.withVersion("1.14");
configBuilder.withUri("http://my-docker-host.tld:2375");
configBuilder.withUsername("dockeruser");
configBuilder.withPassword("ilovedocker");
configBuilder.withEmail("dockeruser@github.com");
DockerClientConfig config = configBuilder.build();
DockerClient docker = DockerClientBuilder.getInstance(config).build();

##### System Properties:
E.g.
Expand Down

0 comments on commit 746a2b8

Please sign in to comment.