Customize docker-java response to remove some logger like stream

I am using docker java version 3.0.10. I can write code to perform different operations using that version. I am getting response like following :

com.github.dockerjava.api.command.InspectImageResponse@3e690a97[arch=amd64,author=,comment=,config=com.github.dockerjava.api.model.ContainerConfig@3dbaa748[attachStderr=false,attachStdin=false,attachStdout=false,cmd={sh},domainName=,entrypoint=<null> ........................(so on json) ]

However, I want JSON response and want to remove appended line com.github.dockerjava.api.command.InspectImageResponse@3e690a97, like in each response am getting.

  • Dockerfile failed because of E: Version x for y was not found
  • How can I run Ghost in Docker with the google/node-runtime image?
  • How do you get around the size limitation of Docker.qcow2 in the Docker for Mac?
  • Go shared libraries for Docker containers to share
  • difference between docker attach and docker exec
  • Liberty Admin Center shows Docker server as running while it is not
  • Please give me way to do that.

    Thanks in advance.

  • Docker exec command not using the mounted directory for /
  • Restarting vs Building a Container on Docker
  • Dockerized Riak cluster - dynamic container IP
  • Sails doesnt populate on large queries
  • What are the differences between a VM image and a Docker image? [duplicate]
  • Docker ADD folder during build and then expose to VOLUME
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.