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.

  • Extend docker postgres image to create extra database
  • How to specify ssl connection with Nginx stream?
  • FROM Command in Docker File
  • Creating docker container with HP UX and IBM AIX
  • How can I forward localhost port on my container to localhost on my host?
  • Docker service won't stay alive
  • Please give me way to do that.

    Thanks in advance.

  • How to get the name of a Docker container using JavaScript?
  • Pushing docker image to docker hub private repository return authentication error [closed]
  • How to edit /etc/hosts file in running docker container
  • How to change dockers default network?
  • docker login in shell script dont work
  • When using docker load on a tarball I am getting an invalid argument
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.