File tree Expand file tree Collapse file tree 1 file changed +0
-38
lines changed Expand file tree Collapse file tree 1 file changed +0
-38
lines changed Original file line number Diff line number Diff line change @@ -22,41 +22,3 @@ Now run the container:
22
22
` docker run --name remote-api-tls -d -p 2376:443 -v <local cert dir>:/data/certs:ro -v /var/run/docker.sock:/var/run/docker.sock:ro whiledo/docker-remote-api-tls `
23
23
24
24
Your Docker Remote API is available on port 2376 via https. The client needs to authenticate via ` cert.pem ` and ` key.pem ` .
25
-
26
- ## Works with Docker Maven Plugin
27
- The configuration works great with [ fabric8io's Docker Maven Plugin] ( https://github.com/fabric8io/docker-maven-plugin ) .
28
-
29
- Here is a simple example configuration, where /home/me/my/cert/dir contains ` cert.pem ` , ` key.pem ` and ` ca.pem ` (= ca-cert.pem from above).
30
- ``` xml
31
- <build >
32
- <plugins >
33
- <plugin >
34
- <groupId >io.fabric8</groupId >
35
- <artifactId >docker-maven-plugin</artifactId >
36
- <version >0.16.8</version >
37
- <configuration >
38
- <images >
39
- <image >
40
- <alias >my-httpd</alias >
41
- <name >httpd</name >
42
- </image >
43
- <image >
44
- <alias >my-newimage</alias >
45
- <name >newimage</name >
46
- <build >
47
- <dockerFile >${project.basedir}/src/test/resources/newimage/Dockerfile</dockerFile >
48
- <compression >gzip</compression ><!-- Use gzip here! -->
49
- </build >
50
- </image >
51
- </images >
52
- <dockerHost >https://my-website.org:2376</dockerHost >
53
- <certPath >/home/me/my/cert/dir</certPath >
54
- <useColor >true</useColor >
55
- </configuration >
56
- </plugin >
57
- </plugins >
58
- </build >
59
- ```
60
-
61
- ` mvn docker:build ` generates the "newimage" by Dockerfile via the remote API. Use gzip as compression here, if you get an exception.
62
- ` mvn docker:start ` starts httpd and newimage.
You can’t perform that action at this time.
0 commit comments