Instead of calling Docker remote APIs, I need develop a program which just talks to Docker Linux Client (not Docker daemon). Here is my code
try {
I will suggest you, don't use any input or output stream, instead, write the output in a file in the docker image. And read your file in your java main Program.
Hope this helps