Closed nmaguiar closed 5 years ago
@nmaguiar/z this project will fix the problem faster if you donate a few dollars to it; just click here and pay via Stripe, it's very fast, convenient and appreciated; thanks a lot!
@nmaguiar thanks, definetely a bug. And many thanks for the donation, much appreciated.
We'll fix it asap. In the meantime, try to use this ctor, perhaps you can use the API version 1.39? Long shot, but maybe it works.
Thanks for your contribution, @nmaguiar/z! If you would be a member of the project, you would now earn +15 reputation points, as explained in §29. You can join and apply to it, see §2.
Job gh:amihaiemil/docker-java-api#256
already assigned to @amihaiemil, can't assign to @amihaiemil
@nmaguiar thanks, definetely a bug. And many thanks for the donation, much appreciated.
We'll fix it asap. In the meantime, try to use this ctor, perhaps you can use the API version 1.39? Long shot, but maybe it works.
Thank you. Just tried with v1.39 but, unfortunately, got the same exception.
@nmaguiar fixed. For now, it'll read both stdout and sterr, there is a puzzle to make that customizable. Version 0.0.7
is released, you should be able to take it from Maven Central already.
Can you close this? If I do it, I think the PM will complain :D
Btw, Logs.toString()
does a .fetch()
behind, so you can use that, if you want your code shorter (println(container.logs())
is the same as println(container.logs().fetch())
).
@amihaiemil, Thank you a lot :) Just tested 0.0.7 and it solved my problem.
Using release 0.0.6 in a container, with docker 18.09, fails whenever trying to use the logs().fetch() method for another container with the following exception:
From what I understood from "Bad parameters: you must choose at least one stream", it looks like it's necessary to specify if its stdout or stderr since both, by default, are false.