You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
###### Create new Docker container, wait for its start and stop it:
73
73
74
74
ContainerConfig containerConfig = new ContainerConfig();
@@ -81,7 +81,7 @@ Run build with tests:
81
81
dockerClient.waitContainer(container.id);
82
82
83
83
dockerClient.stopContainer(container.id);
84
-
84
+
85
85
86
86
##### Support for UNIX sockets:
87
87
@@ -114,3 +114,36 @@ user dockerClient.build(baseDir), where baseDir is a path to folder containing D
114
114
115
115
For additional examples, please look at [DockerClientTest.java](https://github.com/kpelykh/docker-java/blob/master/src/test/java/com/kpelykh/docker/client/test/DockerClientTest.java"DockerClientTest.java")
116
116
117
+
## Configuration
118
+
119
+
There are a couple of configuration items, all of which have sensible defaults:
120
+
121
+
*`url` The Docker URL, e.g. `http://localhost:4243`.
122
+
*`version` The API version, e.g. `1.11`.
123
+
*`username` Your repository username (required to push containers).
124
+
*`password` Your repository password.
125
+
*`email` Your repository email.
126
+
127
+
There are three ways to configure, in descending order of precedence:
128
+
129
+
##### Programatic:
130
+
In your application, e.g.
131
+
132
+
DockerClient docker = new DockerClient("http://localhost:4243");
0 commit comments