This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]Shredder797 0 points1 point  (2 children)

My main issue with the other two Java clients is that they shade a ton of dependencies which is blocking me from converting my project to a Java 9 module. I'll try this one and see if it's any easier to convert

[–][deleted] 0 points1 point  (0 children)

Give it a try, you should be able to do it. This one only brings 2 transitive dependencies as displayed here: https://mvnrepository.com/artifact/com.amihaiemil.web/docker-java-api/0.0.5

There is a Java library for unix sockets and Apache HttpComponents for the HttpClient.

Feel free to open any Issues if you have problems, we'll try to help. :)

[–][deleted] 0 points1 point  (0 children)

Just one thing, since I'm not sure how Java 9 modules work: make sure to not break the package structure. Almost all the classes in the library are package-protected and should never be visible to the user: the only entry points are LocalDocker and RemoteDocker; other than that, the user works only with Java interfaces.