View all files | ||||
Java API client for Docker
Supports a subset of the Docker Client API v1.13, Docker Server version 1.1
Developer forum for docker-java
Maven may run tests during build process but tests are disabled by default. The tests are using a localhost instance of Docker, make sure that you have Docker running for tests to work. To run the tests you have to provide your https://www.docker.io/account/login/ information:
By default Docker server is using UNIX sockets for communication with the Docker client, however docker-java client uses TCP/IP to connect to the Docker server, so you will need to make sure that your Docker server is listening on TCP port. To allow Docker server to use TCP add the following line to /etc/default/docker
More details setting up docket server can be found in official documentation: http://docs.docker.io/en/latest/use/basics/
Now make sure that docker is up:
Run build with tests:
Latest SNAPSHOT is available from maven repo: https://oss.sonatype.org/content/groups/public
For code examples, please look at the Wiki or Test cases
There are a couple of configuration items, all of which have sensible defaults:
There are three ways to configure, in descending order of precedence:
In your application, e.g.
E.g.
In $HOME/.docker.io.properties, e.g.:
In the class path at /docker.io.properties, e.g.: