@@ -24,13 +24,13 @@ By default Docker server is using UNIX sockets for communication with the Docker
2424client uses TCP/IP to connect to the Docker server, so you will need to make sure that your Docker server is
2525listening 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
2929More details setting up docket server can be found in official documentation: http://docs.docker.io/en/latest/use/basics/
3030
3131Now 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
117117There 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:
128128In 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
144144In 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+
149155Contributors
150156---
151157* jacobbay
0 commit comments