Skip to content

Commit bbc5b0c

Browse files
author
alex.collins
committed
version 2.0.0
1 parent 76848d0 commit bbc5b0c

3 files changed

Lines changed: 14 additions & 8 deletions

File tree

README.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ By default Docker server is using UNIX sockets for communication with the Docker
2424
client uses TCP/IP to connect to the Docker server, so you will need to make sure that your Docker server is
2525
listening on TCP port. To allow Docker server to use TCP add the following line to /etc/default/docker
2626

27-
DOCKER_OPTS="-H tcp://127.0.0.1:4243 -H unix:///var/run/docker.sock"
27+
DOCKER_OPTS="-H tcp://127.0.0.1:2375 -H unix:///var/run/docker.sock"
2828

2929
More details setting up docket server can be found in official documentation: http://docs.docker.io/en/latest/use/basics/
3030

3131
Now make sure that docker is up:
3232

33-
$ docker -H tcp://127.0.0.1:4243 version
33+
$ docker -H tcp://127.0.0.1:2375 version
3434

3535
Client version: 0.8.1
3636
Go version (client): go1.2
@@ -55,7 +55,7 @@ Run build with tests:
5555

5656
## Example code snippets:
5757

58-
DockerClient dockerClient = new DockerClient("http://localhost:4243");
58+
DockerClient dockerClient = new DockerClient("http://localhost:2375");
5959

6060
###### Get Docker info:
6161

@@ -116,7 +116,7 @@ For additional examples, please look at [DockerClientTest.java](https://github.c
116116

117117
There are a couple of configuration items, all of which have sensible defaults:
118118

119-
* `url` The Docker URL, e.g. `http://localhost:4243`.
119+
* `url` The Docker URL, e.g. `http://localhost:2375`.
120120
* `version` The API version, e.g. `1.11`.
121121
* `username` Your repository username (required to push containers).
122122
* `password` Your repository password.
@@ -127,7 +127,7 @@ There are three ways to configure, in descending order of precedence:
127127
##### Programatic:
128128
In your application, e.g.
129129

130-
DockerClient docker = new DockerClient("http://localhost:4243");
130+
DockerClient docker = new DockerClient("http://localhost:2375");
131131
docker.setCredentials("dockeruser", "ilovedocker", "dockeruser@github.com");`
132132

133133
##### System Properties:
@@ -143,9 +143,15 @@ In `$HOME/.docker.io.properties`, e.g.:
143143
##### Class Path
144144
In the class path at `/docker.io.properties`, e.g.:
145145

146-
docker.io.url=http://localhost:4243
146+
docker.io.url=http://localhost:2375
147147
docker.io.version=1.11
148148

149+
Change Log
150+
---
151+
0.8.15
152+
153+
* Updated to use port 2375 by default.
154+
149155
Contributors
150156
---
151157
* jacobbay

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<groupId>com.alexecollins</groupId>
1212
<artifactId>docker-java</artifactId>
1313
<packaging>jar</packaging>
14-
<version>0.8.15-SNAPSHOT</version>
14+
<version>1.0.0-SNAPSHOT</version>
1515

1616
<name>docker-java</name>
1717
<url>https://github.com/kpelykh/docker-java</url>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
docker.io.url=http://localhost:4243
1+
docker.io.url=http://localhost:2375
22
docker.io.version=1.11

0 commit comments

Comments
 (0)