Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

323
Views
how to make docker logs in java

I want to create and run docker using docker java client. I want running something like this:

docker logs -f selenium-hub

How to implement this command on docker-java client? Here is my code so far:

result = dockerClient.logContainerCmd(container.getId())
                       .withStdErr(true)
                       .withStdOut(true)
                       .withFollowStream(true)
                       .withTailAll()
                       .exec(logContainerResultCallback);
               try {
                   logContainerResultCallback.awaitCompletion();
               } catch (InterruptedException e) {
                   throw new BaseException(e.getMessage());
               }catch (Exception e){
                   throw new BaseException(e.getMessage());
               }
               break;

why it didn't show like docker show? docker show like

"host": null,
"port": 4444,
 "prioritizer": null,
 "capabilityMatcher": "org.openqa.grid.internal.utils.DefaultCapabilityMatcher"

 "throwOnCapabilityNotPresent": true,
 "newSessionWaitTimeout": -1,
 "jettyMaxThreads": -1,
 "nodePolling": 5000,
 "cleanUpCycle": 5000,
 "timeout": 30000,
 "browserTimeout": 0,
 "maxSession": 5,
 "unregisterIfStillDownAfter": 30000

but it didn't show in java.

please help me. I'm newbie in docker. I want to implement this in java. thanks a lot

about 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!